Instead of fetching every dependency of golang packages separately, we should move towards using dynamic artifacts for these purposes.
A way we can achieve this is by using the following go command:
GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
This command fetches all dependencies of a golang package, populating the golang module cache at the specified directory. That module cache is enough for golang to be able to resolve the dependencies offline.