!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

235 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.49 Servers

Load older messages


SenderMessageTime
2 Mar 2023
@qbit:tapenet.org@qbit:tapenet.org so with go build -mod=vendor ./... in the stayrtr source tree@v0.5.1 it fails to build 19:10:22
@qbit:tapenet.org@qbit:tapenet.org but with just go build ./... it builds fine 19:10:30
@qbit:tapenet.org@qbit:tapenet.org -mod=readonly tells the go command to ignore the vendor directory and to report an error if go.mod needs to be updated. 19:14:42
@qbit:tapenet.org@qbit:tapenet.orghuh19:14:46
@qbit:tapenet.org@qbit:tapenet.orghttps://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/go/module.nix#L176 we set -mod=vendor19:15:23
@0x4a6f:matrix.org[0x4A6F] I don't know, hopefully the don't lynch me for this 19:16:17
@qbit:tapenet.org@qbit:tapenet.orgna, I know all the devs there - they are good peeps :D19:17:41
@qbit:tapenet.org@qbit:tapenet.orgwhere "all" is Claudio and Job :P19:18:19
@0x4a6f:matrix.org[0x4A6F]benjojo is also cool. Have meet with him in Berlin last year.19:19:03
@qbit:tapenet.org@qbit:tapenet.orgnice :D - I know CJ and Job from openbsd hackathons19:19:39
@qbit:tapenet.org@qbit:tapenet.orgi wonder if this is a regress in go build19:20:44
@qbit:tapenet.org@qbit:tapenet.org i am not sure if the error fits into the "if go.mod needs to be updated." category - or if that's just for modules listed in go.mod 19:21:07
@qbit:tapenet.org@qbit:tapenet.orgoh, my error is about vendor/modules.txt19:23:48
@qbit:tapenet.org@qbit:tapenet.orgnot go 1.1619:23:56
@qbit:tapenet.org@qbit:tapenet.org
/nix/store/sjn0iz3vji2lrj5r40vk4arn35mqchyl-go-1.18.10/share/go/pkg/tool/linux_amd64/compile -o $WORK/b117/_pkg_.a -trimpath "/nix/store/sjn0iz3vji2lrj5r40vk4arn35mqchyl-go-1.18.10/share/go/src/log=>log;$WORK/b117=>" -p log -std -compl>
cd /nix/store/sjn0iz3vji2lrj5r40vk4arn35mqchyl-go-1.18.10/share/go/src/vendor/golang.org/x/crypto/chacha20poly1305
/nix/store/sjn0iz3vji2lrj5r40vk4arn35mqchyl-go-1.18.10/share/go/pkg/tool/linux_amd64/asm -p vendor/golang.org/x/crypto/chacha20poly1305 -trimpath "/nix/store/sjn0iz3vji2lrj5r40vk4arn35mqchyl-go-1.18.10/share/go/src/vendor/golang.org/x/>
# 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)

19:34:16
@qbit:tapenet.org@qbit:tapenet.org
qbit@europa[1]:~/src/stayrtr(tags/v0.5.1)% go build -mod=vendor ./...
# 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)

phew

19:39:10
@qbit:tapenet.org@qbit:tapenet.orgcrazy, so go is behaving as expected19:53:04
@qbit:tapenet.org@qbit:tapenet.org under a normal build (go build ./...) go is taking into account all the sub go.mod files and the versions they have listed.. and it realizes that it is in fact OK to build.. 19:54:06
@qbit:tapenet.org@qbit:tapenet.org but with go build -mod=vendor - it doesn't take the versions into account 19:54:27
@qbit:tapenet.org@qbit:tapenet.orgya, feels icky to me 19:59:14
@0x4a6f:matrix.org[0x4A6F]Thanks for your help ❤️20:03:02
@qbit:tapenet.org@qbit:tapenet.orgfor some value of help :P - np!20:04:09
@qbit:tapenet.org@qbit:tapenet.org"hit it with a stick until the bugs fall out!" <-- my debugging technique :D20:07:35
@qbit:tapenet.org@qbit:tapenet.orgYay Ben!20:37:49
3 Mar 2023
@kalbasit:matrix.orgkalbasit joined the room.06:46:44
7 Mar 2023
@qbit:tapenet.org@qbit:tapenet.org hi kalbasit ! 02:49:50
@qbit:tapenet.org@qbit:tapenet.org Sandro 🐧: sorry - changed the PR out from under ya! (219900) 02:50:03
@sandro:supersandro.deSandro 🐧
In reply to @qbit:tapenet.org
Sandro 🐧: sorry - changed the PR out from under ya! (219900)
https://github.com/NixOS/nixpkgs/pull/219900
12:44:01
@qbit:tapenet.org@qbit:tapenet.org I think the hash mismatch is because it needs vendorProxy = true;, but then it doesn't build because some deps are missing.. 12:48:57
@sandro:supersandro.deSandro 🐧uff...12:51:56

Show newer messages


Back to Room ListRoom Version: 9