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.