You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'd like to report some errors that I ran into on my Mac while going through the getting started guide. Maybe someone will find it useful.
Hash mismatches for go modules
Error
error: hash mismatch in fixed-output derivation '/nix/store/0jgjkfkdw76dkg6vvs2m5p5qw820ljvp-cli-latest-go-modules.drv':
specified: sha256-NJOPtpqMUEe0F2TIizrUi40l25e0t0eiQr/Y0acQr4I=
got: sha256-JPfNPmp+ufZsrCjl7lxdSFefn9SChbIV/8Og6ykOb/Q=
error: 1 dependencies of derivation '/nix/store/s4b6msbg6lysz1k3vhlkz5xva7pi9jfx-cli-latest.drv' failed to build
error: 1 dependencies of derivation '/nix/store/crmx9q265fi88iwx603kqgp3zk7p7lwr-detsys-latest.drv' failed to build
Workaround
Use the "got" hashes.
Comments
Not sure why those have changed. Either I'm using a different version of go or it's platform-dependent. buildGoModule seems to account for that (at least to some extent) with proxyVendor (see here), however, I'm not a go nor nix expert. I also checked all minor versions between 1.15 and 1.19 and I was getting different hashes each time.
Missing go.sum entries
Errors
go: [github.com/symbiont-io/detsys-testkit/src/executor@v0.0.0-00010101000000-000000000000](http://github.com/symbiont-io/detsys-testkit/src/executor@v0.0.0-00010101000000-000000000000) requires
[go.uber.org/zap@v1.20.0](http://go.uber.org/zap@v1.20.0): missing go.sum entry; to add it:
go mod download go.uber.org/zap
missing go.sum entry for module providing package [go.uber.org/atomic](http://go.uber.org/atomic) (imported by [go.uber.org/zap](http://go.uber.org/zap)); to add:
go get go.uber.org/zap@v1.20.0
Fix (as above)
go mod download go.uber.org/zap
go get go.uber.org/zap@v1.20.0
Segmentation fault when running tests
Error
--- FAIL: TestRegister1 (0.00s)
panic: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x114d41e]
Workaround
Running export CGO_ENABLED=1 just before the tests seems to fix the issue. I'm confused by this, as the default.nix files contain the correct export, so everything should have been built correctly.
Missing dependency
Error
Error occured during analysis:
exit status 1
Exception in thread "main" java.util.concurrent.ExecutionException: java.io.IOException: Cannot run program "dot": error=2, No such file or directory
Fix
nix-env -iA nixpkgs.graphviz (you may want to add it to your Nix dependencies somewhere)
Other errors
... that could potentially find their place in some troubleshooting guide or at least can stay here for reference
Nix search path issue
Error
file 'nixpkgs/lib' was not found in the Nix search path (add it using $NIX_PATH or -I), at /nix/store/f0my6g5a4d353j7h3771baqfn96f1a3v-gitignore-src/default.nix:1:16
Fix
source ~/.nix-profile/etc/profile.d/nix.sh && nix-channel --update (trail and error from various threads and the combination of these 2 seems to work)
Too many open files
Error
opening directory '/nix/store/iyxfjv4v79i38nj2qyr8m5rblp23affm-maven-compiler-plugin-3.1.jar': Too many open files
Fix
ulimit -n 10240 (obviously)
The text was updated successfully, but these errors were encountered:
Hi, I'd like to report some errors that I ran into on my Mac while going through the getting started guide. Maybe someone will find it useful.
Hash mismatches for go modules
Error
Workaround
Use the "got" hashes.
Comments
Not sure why those have changed. Either I'm using a different version of go or it's platform-dependent.
buildGoModule
seems to account for that (at least to some extent) withproxyVendor
(see here), however, I'm not a go nor nix expert. I also checked all minor versions between1.15
and1.19
and I was getting different hashes each time.Missing
go.sum
entriesErrors
Fix (as above)
Segmentation fault when running tests
Error
Workaround
Running
export CGO_ENABLED=1
just before the tests seems to fix the issue. I'm confused by this, as thedefault.nix
files contain the correct export, so everything should have been built correctly.Missing dependency
Error
Fix
nix-env -iA nixpkgs.graphviz
(you may want to add it to your Nix dependencies somewhere)Other errors
... that could potentially find their place in some troubleshooting guide or at least can stay here for reference
Nix search path issue
Error
Fix
source ~/.nix-profile/etc/profile.d/nix.sh && nix-channel --update
(trail and error from various threads and the combination of these 2 seems to work)Too many open files
Error
Fix
ulimit -n 10240
(obviously)The text was updated successfully, but these errors were encountered: