!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

237 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.50 Servers

Load older messages


SenderMessageTime
21 Feb 2023
@norihiori:matrix.orgAdrien (Iglou.eu) joined the room.17:54:14
24 Feb 2023
@qbit:tapenet.org@qbit:tapenet.org \o/ https://research.swtch.com/telemetry-opt-in 17:07:34
28 Feb 2023
@bootstrapper:matrix.org@bootstrapper:matrix.org joined the room.05:43:24
1 Mar 2023
@fabianhjr:matrix.orgFabián Heredia joined the room.19:41:53
@fabianhjr:matrix.orgFabián HerediaHi20:02:53
@fabianhjr:matrix.orgFabián Herediatrying to upgrade keybase from 6.0.2 to 6.0.4 (buildGoPackage)20:03:11
@fabianhjr:matrix.orgFabián HerediaAnd having some issues regarding upstream vendoring20:03:20
@fabianhjr:matrix.orgFabián Heredia
nix-shell -p 'keybase.overrideAttrs (oldAttrs: rec { version = "6.0.4"; src = fetchFromGitHub { owner = "keybase"; repo = "client"; rev = "v${version}"; sha256 = "sha256-MmXC2Jfeb7tddPgAG+PDy2jfjUxG098WpqO4sagGfjI=";}; vendorSha256 = null;})'
20:03:28
@fabianhjr:matrix.orgFabián Herediaor20:03:30
@fabianhjr:matrix.orgFabián Heredia
nix-shell -p 'keybase.overrideAttrs (oldAttrs: rec { version = "6.0.4"; src = fetchFromGitHub { owner = "keybase"; repo = "client"; rev = "v${version}"; sha256 = "sha256-MmXC2Jfeb7tddPgAG+PDy2jfjUxG098WpqO4sagGfjI=";}; vendorSha256 = lib.fakeHash;})'
20:03:40
@eyjhb:eyjhb.dkeyJhbI am not sure I can help, but what even is the issue?20:08:52
@eyjhb:eyjhb.dkeyJhbBesides the fairly long semi-cursed nix-shell?20:08:59
@fabianhjr:matrix.orgFabián Heredia
building
Building subPackage ./kbnm
go: inconsistent vendoring in /build/source/go:
        github.com/golang/groupcache@v0.0.0-20210331224755-41bb18bfe9da: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/golangci/golangci-lint@v1.50.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
        github.com/keybase/go-jsonw@v0.0.0-20200325173637-df90f282c233: is explicitly required in go.mod, but not marked as explicit in v
20:09:26
@fabianhjr:matrix.orgFabián Herediainconsistent vendoring20:09:30
@fabianhjr:matrix.orgFabián Herediatried to deleteVendor20:09:34
@fabianhjr:matrix.orgFabián HerediaThe override is the version upgrade we are attempting (my and a friend)20:11:07
@fabianhjr:matrix.orgFabián HerediaAnyways, opened an issue. Don't know much about go / go-nixpkgs :C20:16:30
@fabianhjr:matrix.orgFabián Herediahttps://github.com/NixOS/nixpkgs/issues/21904520:16:31
@qbit:tapenet.org@qbit:tapenet.orglooks like you need to vendor since they don't supply the vendor stuff20:17:27
@qbit:tapenet.org@qbit:tapenet.orgso null and fakehash won't wor20:17:32
@qbit:tapenet.org@qbit:tapenet.orgk20:17:33
@qbit:tapenet.org@qbit:tapenet.orghttp://sprunge.us/TVz1rk20:20:42
@qbit:tapenet.org@qbit:tapenet.orgthat gets closer - but it seems it needs newer go..20:21:34
@qbit:tapenet.org@qbit:tapenet.orgoh nope20:21:41
@qbit:tapenet.org@qbit:tapenet.org
# github.com/keybase/client/go/libkb
libkb/secret_store_secretservice.go:62:9: cannot use items (variable of type []"github.com/keybase/dbus".ObjectPath) as []"github.com/keybase/go.dbus".ObjectPath value in return statement
libkb/secret_store_secretservice.go:78:19: cannot use []dbus.ObjectPath{…} (value of type []"github.com/keybase/go.dbus".ObjectPath) as []"github.com/keybase/dbus".ObjectPath value in argument to srv.Unlock
libkb/secret_store_secretservice.go:156:38: cannot use *item (variable of type "github.com/keybase/go.dbus".ObjectPath) as "github.com/keybase/dbus".ObjectPath value in argument to srv.GetSecret
libkb/secret_store_secretservice.go:207:19: cannot use []dbus.ObjectPath{…} (value of type []"github.com/keybase/go.dbus".ObjectPath) as []"github.com/keybase/dbus".ObjectPath value in argument to srv.Unlock
libkb/secret_store_secretservice.go:207:37: cannot use secsrv.DefaultCollection (constant "/org/freedesktop/secrets/aliases/default" of type "github.com/keybase/dbus".ObjectPath) as "github.com/keybase/go.dbus".ObjectPath value in array or slice literal

20:21:51
2 Mar 2023
@13k:matrix.org@13k:matrix.org joined the room.15:03:58
@0x4a6f:matrix.org[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:matrix.org[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@qbit:tapenet.orghmm18:25:30
@qbit:tapenet.org@qbit:tapenet.orgi think you'd need to patch the go.mod18:25:53

Show newer messages


Back to Room ListRoom Version: 9