| 21 Feb 2023 |
| Adrien (Iglou.eu) joined the room. | 17:54:14 |
| 24 Feb 2023 |
@qbit:tapenet.org | \o/ https://research.swtch.com/telemetry-opt-in | 17:07:34 |
| 28 Feb 2023 |
| @bootstrapper:matrix.org joined the room. | 05:43:24 |
| 1 Mar 2023 |
| Fabián Heredia joined the room. | 19:41:53 |
Fabián Heredia | Hi | 20:02:53 |
Fabián Heredia | trying to upgrade keybase from 6.0.2 to 6.0.4 (buildGoPackage) | 20:03:11 |
Fabián Heredia | And having some issues regarding upstream vendoring | 20:03:20 |
Fabiá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 |
Fabián Heredia | or | 20:03:30 |
Fabiá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 | I am not sure I can help, but what even is the issue? | 20:08:52 |
eyJhb | Besides the fairly long semi-cursed nix-shell? | 20:08:59 |
Fabiá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 |
Fabián Heredia | inconsistent vendoring | 20:09:30 |
Fabián Heredia | tried to deleteVendor | 20:09:34 |
Fabián Heredia | The override is the version upgrade we are attempting (my and a friend) | 20:11:07 |
Fabián Heredia | Anyways, opened an issue. Don't know much about go / go-nixpkgs :C | 20:16:30 |
Fabián Heredia | https://github.com/NixOS/nixpkgs/issues/219045 | 20:16:31 |
@qbit:tapenet.org | looks like you need to vendor since they don't supply the vendor stuff | 20:17:27 |
@qbit:tapenet.org | so null and fakehash won't wor | 20:17:32 |
@qbit:tapenet.org | k | 20:17:33 |
@qbit:tapenet.org | http://sprunge.us/TVz1rk | 20:20:42 |
@qbit:tapenet.org | that gets closer - but it seems it needs newer go.. | 20:21:34 |
@qbit:tapenet.org | oh nope | 20:21:41 |
@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 joined the room. | 15:03:58 |
[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 |