Repository navigation
Closed
Labels
6.topic: golangGo is a high-level general purpose programming language that is statically typed and compiled.9.needs: package (update)This needs a package to be updated
Description
Checklist
- Checked the nixpkgs master branch
- Checked the nixpkgs pull requests
Project name
nix search name: nixos.gvisor (gvisor)
current version: 1.14
desired version: 1.16
Notify maintainers
maintainers: @andrew-d
Note for maintainers
Please tag this issue in your PR.
Additional
$ nix-shell --run "colmena build -f nix/hive.nix"
[INFO ] Enumerating nodes...
[INFO ] Selected all 5 nodes.
(...) ❌ 0s Evalation failed: Nix exited with error code: 1
[ERROR] Evaluation of 5 nodes failed. Logs:
[ERROR] error: Package ‘go-1.14.15’ in /nix/store/q5cl71pgl7ia32llcr79qmwh4dhpgg8g-nixpkgs-src/pkgs/development/compilers/go/1.14.nix:264 is marked as insecure, refusing to evaluate.
[ERROR]
[ERROR]
[ERROR] Known issues:
[ERROR] - Support for Go 1.14 ended with the release of Go 1.16: https://golang.org/doc/devel/release.html#policy
[ERROR]
[ERROR] You can install it anyway by allowing this package, using the
[ERROR] following methods:
[ERROR]
[ERROR] a) To temporarily allow all insecure packages, you can use an environment
[ERROR] variable for a single invocation of the nix tools:
[ERROR]
[ERROR] $ export NIXPKGS_ALLOW_INSECURE=1
[ERROR]
[ERROR] b) for `nixos-rebuild` you can add ‘go-1.14.15’ to
[ERROR] `nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
[ERROR] like so:
[ERROR]
[ERROR] {
[ERROR] nixpkgs.config.permittedInsecurePackages = [
[ERROR] "go-1.14.15"
[ERROR] ];
[ERROR] }
[ERROR]
[ERROR] c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
[ERROR] ‘go-1.14.15’ to `permittedInsecurePackages` in
[ERROR] ~/.config/nixpkgs/config.nix, like so:
[ERROR]
[ERROR] {
[ERROR] permittedInsecurePackages = [
[ERROR] "go-1.14.15"
[ERROR] ];
[ERROR] }
[ERROR]
[ERROR]
[ERROR] (use '--show-trace' to show detailed location information)
[ERROR]
Metadata
Metadata
Assignees
Labels
6.topic: golangGo is a high-level general purpose programming language that is statically typed and compiled.9.needs: package (update)This needs a package to be updated
Activity
uhthomas commentedon May 19, 2021
So, this issue is a little more nuanced than I initially thought.
Go 1.14 just doesn't build for me at all.
Go 1.15 and 1.16 also don't build but for different reasons.
uhthomas commentedon May 19, 2021
Further, I tried updating gvisor and it just doesn't work at all. I think this package needs some work.
Build fails with
uhthomas commentedon May 20, 2021
Actually, I'm going to make a new issue for gvisor not building even with Go 1.14.
andrew-d commentedon May 21, 2021
So, I don't have the time right now to fix the build, but... gvisor now publishes a "go" branch which doesn't use Bazel and simply has everything pre-generated and buildable with the Go tooling:
https://github.com/google/gvisor/tree/go
If someone wanted to take a pass at converting the derivation to use
buildGoModule/buildGoPackage, I'd happily review / provide feedback on that PR!uhthomas commentedon May 21, 2021
@andrew-d That's good to know! I can take a look tonight.
uhthomas commentedon May 21, 2021
@andrew-d gvisor/gvisor#6053
😄
andrew-d commentedon Jun 7, 2021
@lukegb - Thank you!
lukegb commentedon Jun 8, 2021
It might still be worthwhile switching to the Go native build system though, for ease of updating :)