| 2 Mar 2023 |
[0x4A6F] | Strange, a minor version does result in this error:
this derivation will be built:
/nix/store/3s9c5n1a9rgq2hjr5rxv2pwaqfkvnkmg-stayrtr-0.5.1.drv
building '/nix/store/3s9c5n1a9rgq2hjr5rxv2pwaqfkvnkmg-stayrtr-0.5.1.drv'...
unpacking sources
unpacking source archive /nix/store/rgg9vqkj7acijlc79jxx6m1hbsgqwvfr-source
source root is source
patching sources
configuring
building
Building subPackage ./cmd/rtrdump
# golang.org/x/sys/unix
vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_linux.go:2271:9: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/sysvshm_unix.go:33:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
error: builder for '/nix/store/3s9c5n1a9rgq2hjr5rxv2pwaqfkvnkmg-stayrtr-0.5.1.drv' failed with exit code 1;
last 10 log lines:
> source root is source
> patching sources
> configuring
> building
> Building subPackage ./cmd/rtrdump
> # golang.org/x/sys/unix
> vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
> vendor/golang.org/x/sys/unix/syscall_linux.go:2271:9: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
> vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
> vendor/golang.org/x/sys/unix/sysvshm_unix.go:33:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
For full logs, run 'nix log /nix/store/3s9c5n1a9rgq2hjr5rxv2pwaqfkvnkmg-stayrtr-0.5.1.drv'.
Can I override the go version used instead of the one specified in go.mod?
| 18:14:57 |
[0x4A6F] | * Strange, a minor version does result in this error (0.5.0 does build according to #219055):
this derivation will be built:
/nix/store/3s9c5n1a9rgq2hjr5rxv2pwaqfkvnkmg-stayrtr-0.5.1.drv
building '/nix/store/3s9c5n1a9rgq2hjr5rxv2pwaqfkvnkmg-stayrtr-0.5.1.drv'...
unpacking sources
unpacking source archive /nix/store/rgg9vqkj7acijlc79jxx6m1hbsgqwvfr-source
source root is source
patching sources
configuring
building
Building subPackage ./cmd/rtrdump
# golang.org/x/sys/unix
vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_linux.go:2271:9: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
vendor/golang.org/x/sys/unix/sysvshm_unix.go:33:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
error: builder for '/nix/store/3s9c5n1a9rgq2hjr5rxv2pwaqfkvnkmg-stayrtr-0.5.1.drv' failed with exit code 1;
last 10 log lines:
> source root is source
> patching sources
> configuring
> building
> Building subPackage ./cmd/rtrdump
> # golang.org/x/sys/unix
> vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
> vendor/golang.org/x/sys/unix/syscall_linux.go:2271:9: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
> vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
> vendor/golang.org/x/sys/unix/sysvshm_unix.go:33:7: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod)
For full logs, run 'nix log /nix/store/3s9c5n1a9rgq2hjr5rxv2pwaqfkvnkmg-stayrtr-0.5.1.drv'.
Can I override the go version used instead of the one specified in go.mod?
| 18:18:08 |
@qbit:tapenet.org | hmm | 18:25:30 |
@qbit:tapenet.org | i think you'd need to patch the go.mod | 18:25:53 |
@qbit:tapenet.org | hm, nope, then it needs a gomodtidy | 18:31:18 |
@qbit:tapenet.org | oh, that pr builds for me | 18:32:09 |
@qbit:tapenet.org | /nix/store/f2ynbi8kj5mjmv8l1ijzv2rvnb309d0v-stayrtr-0.5.0 | 18:32:16 |
@qbit:tapenet.org | [0x4A6F]: are you on stable? | 18:32:33 |
@qbit:tapenet.org | oh, lol 0.5.1 | 18:33:27 |
[0x4A6F] | In reply to @qbit:tapenet.org oh, lol 0.5.1 Yes, that looks ugly... | 18:38:16 |
@qbit:tapenet.org | ya, they may have broken things with that tag, i think the latest sys package isn't compat with 1.16 | 18:39:38 |
@qbit:tapenet.org | waiting on the goproxy crap to update so I can test go install github.com/bgp/stayrtr@v0.5.1 | 18:39:56 |
[0x4A6F] | In reply to @qbit:tapenet.org [0x4A6F]: are you on stable? nios-verison 545c7a3 nixpkgs checkout in working directory is 0b47e5eaf2451ad2991cb7824b68d2287c018e85 (rebased recently) | 18:40:03 |
@qbit:tapenet.org | oh, i guess i can do direct | 18:40:06 |
[0x4A6F] | In reply to @qbit:tapenet.org [0x4A6F]: are you on stable? * nixos-verison 545c7a3 nixpkgs checkout in working directory is 0b47e5eaf2451ad2991cb7824b68d2287c018e85 (rebased recently) | 18:40:39 |
@qbit:tapenet.org | go: github.com/bgp/stayrtr@c112384f2137e21af6bf5c752ece1d00da97477f: module github.com/bgp/stayrtr@c112384f2137e21af6bf5c752ece1d00da97477f found (v0.5.1), but does not contain package github.com/bgp/stayrtr | 18:41:36 |
@qbit:tapenet.org | wat | 18:41:36 |
@qbit:tapenet.org | oh | 18:44:03 |
@qbit:tapenet.org | github.com/bgp/stayrtr/cmd/stayrtr@latest | 18:44:34 |
@qbit:tapenet.org | [0x4A6F]: do you need the rtrdump tool? | 18:48:13 |
[0x4A6F] | Oh, I see: v0.5.1 - Critical fixes for v0.5.0 Pre-release | 18:48:36 |
@qbit:tapenet.org | what's weird is that i can build everything with the go tool | 18:50:49 |
@qbit:tapenet.org | go install github.com/bgp/stayrtr/cmd/...@v0.5.1 | 18:50:59 |
[0x4A6F] | In reply to @qbit:tapenet.org [0x4A6F]: do you need the rtrdump tool? Does it conflict somehow? | 19:03:19 |
@qbit:tapenet.org | no, i was thinking it was just that tool that was failing - but setting subPackages = [ "cmd/stayrtr" ]; fails the same way | 19:04:24 |
@qbit:tapenet.org | I can 'go install' just fine on nixos (unstable, go 1.19.6) and openbsd -current | 19:05:18 |
@qbit:tapenet.org | so now I have no idea what could be wrong | 19:05:47 |
@qbit:tapenet.org | i wonder if go install is less strict | 19:09:24 |
@qbit:tapenet.org | yep | 19:09:51 |
@qbit:tapenet.org | so with go build -mod=vendor ./... in the stayrtr source tree@v0.5.1 it fails to build | 19:10:22 |