Go - Module lookup disabled by GOPROXY=off

Hi !
I’m currently trying to upgrade the protonmail-bridge package to its last version (2.3.0). ProtonMail bridged is written in Go, in which I have absolutely no experience.

As the current version is build with the no-gui option, I tried to build the last version with the GUI.

That lead me to the following default.nix:

{ lib, buildGoModule, fetchFromGitHub, pkg-config, libsecret, git }:

buildGoModule rec {
  pname = "protonmail-bridge";
  version = "2.3.0";

  src = fetchFromGitHub {
    owner = "ProtonMail";
    repo = "proton-bridge";
    rev = "br-${version}";
    sha256 = "sha256-7p+Q6/BphE/dxNQe+gfcIty6TAWHUcPpvSJWfmf4OQg=";
  };

  vendorSha256 = "sha256-dhrn6xQ0IJzBYeO6ko2PUCO+idopC2An0ylqCnx5jKg=";

  nativeBuildInputs = [ pkg-config git ];

  buildInputs = [ libsecret ];

  proxyVendor = true;

  buildPhase = ''
    runHook preBuild

    patchShebangs ./utils/
    make BUILD_TIME= -j$NIX_BUILD_CORES

    runHook postBuild
  '';

  installPhase = ''
    runHook preInstall

    install -Dm555 proton-bridge $out/bin/protonmail-bridge

    runHook postInstall
  '';


  meta = with lib; {
    homepage = "https://github.com/ProtonMail/proton-bridge";
    changelog = "https://github.com/ProtonMail/proton-bridge/blob/310e6ffc0d3353907f4493daa24da19a8f012908/Changelog.md";
    downloadPage = "https://github.com/ProtonMail/proton-bridge/releases";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ lightdiscord ];
    description = "Use your ProtonMail account with your local e-mail client";
    longDescription = ''
      An application that runs on your computer in the background and seamlessly encrypts
      and decrypts your mail as it enters and leaves your computer.

      To work, gnome-keyring service must be enabled.
    '';
  };
}

However, when trying to build it give me the following error for a specific dependency:

go: github.com/0xAX/notificator@v0.0.0-20191016112426-3962a5ea8da1: module lookup disabled by GOPROXY=off

I tried then to set the proxyVendor option to true in buildGoModule, then It seems like go can’t access internet at all, which led me to the following error:

go: github.com/0xAX/notificator@v0.0.0-20191016112426-3962a5ea8da1: reading file:///nix/store/hrpa3mh59sfc2ncig06mwfg64zns43dn-protonmail-bridge-2.3.0-go-modules/github.com/0x%21a%21x/notificator/@v/v0.0.0-20191016112426-3962a5ea8da1.mod: open /nix/store/hrpa3mh59sfc2ncig06mwfg64zns43dn-protonmail-bridge-2.3.0-go-modules/github.com/0x!a!x/notificator/@v/v0.0.0-20191016112426-3962a5ea8da1.mod: no such file or directory
fatal: unable to access 'https://github.com/therecipe/env_linux_amd64_513.git/': Could not resolve host: github.com
make: *** [Makefile:141: vendor-cache/github.com/therecipe/env_linux_amd64_513] Error 128
go: downloading github.com/therecipe/qt v0.0.0-20200701200531-7f61353ee73e
go: github.com/0xAX/notificator@v0.0.0-20191016112426-3962a5ea8da1: reading file:///nix/store/hrpa3mh59sfc2ncig06mwfg64zns43dn-protonmail-bridge-2.3.0-go-modules/github.com/0x%21a%21x/notificator/@v/v0.0.0-20191016112426-3962a5ea8da1.mod: open /nix/store/hrpa3mh59sfc2ncig06mwfg64zns43dn-protonmail-bridge-2.3.0-go-modules/github.com/0x!a!x/notificator/@v/v0.0.0-20191016112426-3962a5ea8da1.mod: no such file or directory

I tried several options like setting GOPROXY=direct myself, but It always lead me to the later error.

I did see this issue, but I didn’t really understand how could I fix it, even more with no experience in Go.

I tried to build it myself within a development shell, and I had no issue.

Hope someone will be able to help me there :slight_smile:

Thanks !

I can’t reproduce this issue on aarch64-linux or aarch64-darwin.

Can you run nix-shell -p nix-info --run "nix-info -m" and nix --extra-experimental-features nix-command show-config?

Sure !
There it is for nix-shell -p nix-info --run "nix-info -m"

 - system: `"x86_64-linux"`
 - host os: `Linux 6.0.2, NixOS, 22.11 (Raccoon), 22.11pre418904.db25c4da285`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(root): `"nixos"`
 - channels(dala): `"home-manager"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

And for nix --extra-experimental-features nix-command show-config

accept-flake-config = false
access-tokens = 
allow-dirty = true
allow-import-from-derivation = true
allow-new-privileges = false
allow-symlinked-store = false
allow-unsafe-native-code-during-evaluation = false
allowed-impure-host-deps = 
allowed-uris = 
allowed-users = *
auto-optimise-store = false
bash-prompt = 
bash-prompt-prefix = 
bash-prompt-suffix = 
build-hook = /nix/store/gi0aq6w348vfxs3ggxl9jpg25ixp44kd-nix-2.11.0/bin/nix __build-remote
build-poll-interval = 5
build-users-group = 
builders = 
builders-use-substitutes = false
commit-lockfile-summary = 
compress-build-log = true
connect-timeout = 0
cores = 0
diff-hook = 
download-attempts = 5
download-speed = 0
enforce-determinism = true
eval-cache = true
experimental-features = flakes nix-command
extra-platforms = i686-linux x86_64-v1-linux x86_64-v2-linux x86_64-v3-linux
fallback = false
filter-syscalls = true
flake-registry = https://channels.nixos.org/flake-registry.json
fsync-metadata = true
gc-reserved-space = 8388608
hashed-mirrors = 
http-connections = 25
http2 = true
ignore-try = false
ignored-acls = security.csm security.selinux system.nfs4_acl
impersonate-linux-26 = false
keep-build-log = true
keep-derivations = true
keep-env-derivations = false
keep-failed = false
keep-going = false
keep-outputs = false
log-lines = 10
max-build-log-size = 0
max-free = 18446744073709551615
max-jobs = 8
max-silent-time = 0
min-free = 0
min-free-check-interval = 5
nar-buffer-size = 33554432
narinfo-cache-negative-ttl = 3600
narinfo-cache-positive-ttl = 2592000
netrc-file = /etc/nix/netrc
nix-path = /home/dala/.nix-defexpr/channels nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos nixos-config=/etc/nixos/configuration.nix /nix/var/nix/profiles/per-user/root/channels
plugin-files = 
post-build-hook = 
pre-build-hook = 
preallocate-contents = false
print-missing = true
pure-eval = true
repeat = 0
require-sigs = true
restrict-eval = false
run-diff-hook = false
sandbox = true
sandbox-build-dir = /build
sandbox-dev-shm-size = 50%
sandbox-fallback = false
sandbox-paths = /bin/sh=/nix/store/b0ypzsib8ymwgi9a7rl3m4fxni83wdai-busybox-static-x86_64-unknown-linux-musl-1.35.0/bin/busybox
secret-key-files = 
show-trace = false
stalled-download-timeout = 300
store = auto
substitute = true
substituters = https://cache.nixos.org/
sync-before-registering = false
system = x86_64-linux
system-features = benchmark big-parallel kvm nixos-test
tarball-ttl = 3600
timeout = 0
trace-function-calls = false
trace-verbose = false
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
trusted-substituters = 
trusted-users = root
use-case-hack = false
use-registries = true
use-sqlite-wal = true
user-agent-suffix = 
warn-dirty = true

I suspect your issue may be that you didn’t regenerate the vendor hash, so wrong dependencies would be used.

Did you take the hash from the derivation you modified? If so, try setting vendorSha256 = lib.fakeHash, set it to the hash it results in, and then try to build again.

If that doesn’t work, can you provide full build logs, please?

The current vendorHash is the result after faking it.

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/4y9z9kl4kibi9bhdl22ds9ms57ziifhs-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
patching script interpreter paths in ./utils/
./utils/dependency_license.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/credits.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/release_notes.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/missing_license.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/remove_non_relative_links_darwin.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/changelog_linter.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cd ./utils/ && ./credits.sh bridge
git clone https://github.com/therecipe/env_linux_amd64_513.git vendor-cache/github.com/therecipe/env_linux_amd64_513
go install -v -tags=no_env github.com/therecipe/qt/cmd/...
sh: line 1: which: command not found
Install Go-lang!
make: *** [Makefile:189: check-has-go] Error 1
make: *** Waiting for unfinished jobs....
Cloning into 'vendor-cache/github.com/therecipe/env_linux_amd64_513'...
fatal: unable to access 'https://github.com/therecipe/env_linux_amd64_513.git/': Could not resolve host: github.com
make: *** [Makefile:141: vendor-cache/github.com/therecipe/env_linux_amd64_513] Error 128
go: warning: "github.com/therecipe/qt/cmd/..." matched no packages
go mod vendor
go: github.com/0xAX/notificator@v0.0.0-20191016112426-3962a5ea8da1: module lookup disabled by GOPROXY=off
go: downloading github.com/sirupsen/logrus v1.7.0
go: downloading github.com/Masterminds/semver/v3 v3.1.0
go: downloading github.com/ProtonMail/gopenpgp/v2 v2.4.7
go: downloading golang.org/x/sys v0.0.0-20220627191245-f75cf1eec38b
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/stretchr/testify v1.7.0
go: downloading github.com/urfave/cli/v2 v2.2.0
go: downloading github.com/0xAX/notificator v0.0.0-20191016112426-3962a5ea8da1
go: downloading github.com/ProtonMail/go-autostart v0.0.0-20181114175602-c5272053443a
go: downloading github.com/allan-simon/go-singleinstance v0.0.0-20160830203053-79edcfdc2dfc
go: downloading github.com/hashicorp/go-multierror v1.1.0
go: downloading github.com/therecipe/qt v0.0.0-20200701200531-7f61353ee73e
go: downloading github.com/ProtonMail/go-imap-id v0.0.0-20190926060100-f94a56b9ecde
go: downloading github.com/ProtonMail/go-imap v0.0.0-20201228133358-4db68cea0cac
go: downloading github.com/abiosoft/ishell v2.0.0+incompatible
go: downloading github.com/fatih/color v1.9.0
go: downloading howett.net/plist v1.0.0
go: downloading github.com/elastic/go-sysinfo v1.7.1
go: downloading github.com/getsentry/sentry-go v0.12.0
go: downloading github.com/emersion/go-sasl v0.0.0-20200509203442-7bfe0ed36a21
go: downloading github.com/golang/mock v1.4.4
go: downloading github.com/ricochet2200/go-disk-usage/du v0.0.0-20210707232629-ac9918953285
go: downloading github.com/emersion/go-imap-appendlimit v0.0.0-20190308131241-25671c986a6a
go: downloading github.com/emersion/go-imap-move v0.0.0-20190710073258-6e5a51a5b342
go: downloading github.com/emersion/go-imap-unselect v0.0.0-20171113212723-b985794e5f26
go: downloading github.com/emersion/go-imap-quota v0.0.0-20210203125329-619074823f3c
go: downloading github.com/ProtonMail/go-message v0.0.0-20210611055058-fabeff2ec753
go: downloading github.com/google/go-cmp v0.5.5
go: downloading github.com/google/uuid v1.1.1
go: downloading github.com/emersion/go-smtp v0.14.0
go: downloading golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4
go: downloading github.com/ProtonMail/go-vcard v0.0.0-20180326232728-33aaa0a0c8a5
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/ProtonMail/docker-credential-helpers v1.1.0
go: downloading github.com/godbus/dbus v4.1.0+incompatible
go: downloading github.com/cuthix/go-keychain v0.0.0-20220405075754-31e7cee908fe
go: downloading github.com/PuerkitoBio/goquery v1.5.1
go: downloading github.com/nsf/jsondiff v0.0.0-20200515183724-f29ed568f4ce
go: downloading github.com/ProtonMail/go-rfc5322 v0.8.0
go: downloading github.com/emersion/go-textwrapper v0.0.0-20200911093747-65d896831594
go: downloading github.com/vmihailenco/msgpack/v5 v5.1.3
go: downloading github.com/jaytaylor/html2text v0.0.0-20200412013138-3577fbdbcff7
go: downloading github.com/logrusorgru/aurora v2.0.3+incompatible
go: downloading github.com/ProtonMail/go-srp v0.0.5
go: downloading github.com/cucumber/godog v0.12.1
go: downloading github.com/go-resty/resty/v2 v2.6.0
go: downloading github.com/cucumber/messages-go/v16 v16.0.1
go: downloading go.etcd.io/bbolt v1.3.6
go: downloading github.com/ProtonMail/go-crypto v0.0.0-20220623141421-5afb4c282135
go: downloading github.com/miekg/dns v1.1.41
go: github.com/0xAX/notificator@v0.0.0-20191016112426-3962a5ea8da1: module lookup disabled by GOPROXY=off
make: *** [Makefile:155: prepare-vendor] Error 1

There are some issues with the Makefile, but it should not really impact the build process. For me, only the latest issue is the one that broke the build.

When trying to set the vendorSha256 to null, this issue disappear but I get a new one (plus inconsistent dependencies from Go):

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/4y9z9kl4kibi9bhdl22ds9ms57ziifhs-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
patching script interpreter paths in ./utils/
./utils/dependency_license.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/credits.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/release_notes.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/missing_license.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/remove_non_relative_links_darwin.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
./utils/changelog_linter.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/znkypmyvykawwg71xawqzb98qbllijv8-bash-5.1-p16/bin/bash"
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
cd ./utils/ && ./credits.sh bridge
git clone https://github.com/therecipe/env_linux_amd64_513.git vendor-cache/github.com/therecipe/env_linux_amd64_513
go install -v -tags=no_env github.com/therecipe/qt/cmd/...
sh: line 1: which: command not found
Install Go-lang!
Cloning into 'vendor-cache/github.com/therecipe/env_linux_amd64_513'...
make: *** [Makefile:189: check-has-go] Error 1
make: *** Waiting for unfinished jobs....
go: inconsistent vendoring in /build/source:
	github.com/docker/docker-credential-helpers@v0.6.3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-imap@v1.0.6: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/0xAX/notificator@v0.0.0-20191016112426-3962a5ea8da1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/Masterminds/semver/v3@v3.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ProtonMail/bcrypt@v0.0.0-20211005172633-e235017c1baf: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ProtonMail/go-autostart@v0.0.0-20181114175602-c5272053443a: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ProtonMail/go-crypto@v0.0.0-20220623141421-5afb4c282135: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ProtonMail/go-imap-id@v0.0.0-20190926060100-f94a56b9ecde: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ProtonMail/go-rfc5322@v0.8.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ProtonMail/go-srp@v0.0.5: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ProtonMail/go-vcard@v0.0.0-20180326232728-33aaa0a0c8a5: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ProtonMail/gopenpgp/v2@v2.4.7: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/PuerkitoBio/goquery@v1.5.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/abiosoft/ishell@v2.0.0+incompatible: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/abiosoft/readline@v0.0.0-20180607040430-155bce2042db: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/allan-simon/go-singleinstance@v0.0.0-20160830203053-79edcfdc2dfc: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/chzyer/logex@v1.1.10: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/chzyer/test@v0.0.0-20180213035817-a1ea475d72b1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/cucumber/godog@v0.12.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/cucumber/messages-go/v16@v16.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/elastic/go-sysinfo@v1.7.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/elastic/go-windows@v1.0.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-imap-appendlimit@v0.0.0-20190308131241-25671c986a6a: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-imap-move@v0.0.0-20190710073258-6e5a51a5b342: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-imap-quota@v0.0.0-20210203125329-619074823f3c: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-imap-unselect@v0.0.0-20171113212723-b985794e5f26: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-message@v0.12.1-0.20201221184100-40c3f864532b: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-sasl@v0.0.0-20200509203442-7bfe0ed36a21: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-smtp@v0.14.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-textwrapper@v0.0.0-20200911093747-65d896831594: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/emersion/go-vcard@v0.0.0-20190105225839-8856043f13c5: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/fatih/color@v1.9.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/flynn-archive/go-shlex@v0.0.0-20150515145356-3f9db97f8568: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/getsentry/sentry-go@v0.12.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/go-resty/resty/v2@v2.6.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/godbus/dbus@v4.1.0+incompatible: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/golang/mock@v1.4.4: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/google/go-cmp@v0.5.5: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/google/uuid@v1.1.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/hashicorp/go-multierror@v1.1.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/jameskeane/bcrypt@v0.0.0-20120420032655-c3cd44c1e20f: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/jaytaylor/html2text@v0.0.0-20200412013138-3577fbdbcff7: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/keybase/go-keychain@v0.0.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/kr/text@v0.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/logrusorgru/aurora@v2.0.3+incompatible: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/mattn/go-runewidth@v0.0.9: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/miekg/dns@v1.1.41: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/niemeyer/pretty@v0.0.0-20200227124842-a10e7caefd8e: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/nsf/jsondiff@v0.0.0-20200515183724-f29ed568f4ce: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/olekukonko/tablewriter@v0.0.4: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/pkg/errors@v0.9.1: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/prometheus/procfs@v0.7.3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ricochet2200/go-disk-usage/du@v0.0.0-20210707232629-ac9918953285: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/sirupsen/logrus@v1.7.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/ssor/bom@v0.0.0-20170718123548-6386211fdfcf: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/stretchr/testify@v1.7.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/therecipe/qt@v0.0.0-20200701200531-7f61353ee73e: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/therecipe/qt/internal/binding/files/docs/5.12.0@v0.0.0-20200904063919-c0c124a5770d: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/therecipe/qt/internal/binding/files/docs/5.13.0@v0.0.0-20200904063919-c0c124a5770d: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/urfave/cli/v2@v2.2.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/vmihailenco/msgpack/v5@v5.1.3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	go.etcd.io/bbolt@v1.3.6: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	golang.org/x/crypto@v0.0.0-20220622213112-05595931fe9d: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	golang.org/x/net@v0.0.0-20220425223048-2871e0cb64e4: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	golang.org/x/sys@v0.0.0-20220627191245-f75cf1eec38b: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	golang.org/x/text@v0.3.7: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	howett.net/plist@v1.0.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
	github.com/docker/docker-credential-helpers: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
	github.com/emersion/go-imap: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
	github.com/emersion/go-message: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
	github.com/keybase/go-keychain: is replaced in go.mod, but not marked as replaced in vendor/modules.txt

	To ignore the vendor directory, use -mod=readonly or -mod=mod.
	To sync the vendor directory, run:
		go mod vendor
make: *** [Makefile:154: prepare-vendor] Error 1
fatal: unable to access 'https://github.com/therecipe/env_linux_amd64_513.git/': Could not resolve host: github.com
make: *** [Makefile:141: vendor-cache/github.com/therecipe/env_linux_amd64_513] Error 128

As far as I understand a discussion I had on the Matrix Dev channel, this is due to the fact that without a Fixed Output Derivation (basically the hash here), the sandbox disables any network connection. As a git clone is made from the Makefile, this one can’t access to github.