!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

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

Load older messages


SenderMessageTime
11 Nov 2025
@arianvp:matrix.orgArian

Iโ€™m trying to build a project that relies on https://github.com/google/go-tpm-tools/tree/main/simulator in its tests

but the ms-tpm-20-ref subfolder does not end up in the vendor folder as itโ€™s not a go package and thus it canโ€™t find it.

The issue at hand is documented in https://github.com/golang/go/issues/26366

is there a way for buildGoModule to vendor extra files from dependencies?

12:06:56
@arianvp:matrix.orgArian hmm maybe a dumy go:embed wil fix it 12:16:55
@katexochen:matrix.orgPaul Meyer (katexochen)

is there a way for buildGoModule to vendor extra files from dependencies?

No, buildGoModule is just calling go mod vendor.

12:33:05
@jimww:matrix.orgbonkhonagahoogs changed their display name from ๐ŸŽ = egg to ใ‚ธใƒ .12:38:50
@jimww:matrix.orgbonkhonagahoogs changed their profile picture.12:39:59
@arianvp:matrix.orgArianhttps://github.com/golang/go/issues/26366 infuriating read12:53:08
@arianvp:matrix.orgArian Iโ€™m trying to work around it with go:embed now. but now go removes any file in a folder named main lol. So I need to rename the folder containing the C files to _main 12:54:33
@arianvp:matrix.orgArian AH I think proxyVendor = true fixes my issue as that uses go mod download instead of go mod vendor 13:08:47
@arianvp:matrix.orgArianIt does! :party:13:11:19
12 Nov 2025
@inayet:matrix.orgInayet changed their display name from inayet to Inayet.12:39:43
14 Nov 2025
@leona:leona.isleona joined the room.16:11:06
@lt1379:matrix.orgLun joined the room.16:43:46
20 Nov 2025
@user12592851:matrix.orgJohn joined the room.14:49:54
21 Nov 2025
@amadaluzia:unredacted.orgamadaluzia changed their display name from amadaluzia to amadaluzia (in ๐Ÿ‡น๐Ÿ‡ท til 25).14:44:58
@amadaluzia:unredacted.orgamadaluzia changed their display name from amadaluzia (in ๐Ÿ‡น๐Ÿ‡ท til 25) to amadaluzia (๐Ÿ‡น๐Ÿ‡ท til 25th).14:45:28
@isabel:isabelroses.comisabel changed their profile picture.18:14:27
22 Nov 2025
@kaya:catnip.eekaya left the room.15:47:32
24 Nov 2025
@amadaluzia:unredacted.orgamadaluzia changed their display name from amadaluzia (๐Ÿ‡น๐Ÿ‡ท til 25th) to amadaluzia.12:58:09
27 Nov 2025
@jimww:matrix.orgbonkhonagahoogs changed their profile picture.02:16:06
@opna2608:matrix.orgPunathrowing this in here, in case the Go ppl of Nixpkgs have an opinion on this: {go,go_latest}: Default to gccgo on platforms that normal Go doesn't support | https://github.com/NixOS/nixpkgs/pull/46164415:04:58
@jrick:zettaport.comjrickis gccgo relevant at all anymore? iirc they don't implement any of the new language features since generics were introduced16:07:21
@pyrox:pyrox.devdish [Fox/It/She]they dont even support generics, however the one good thing is that it can be used in a bootstrap chain to bootstrap a go compiler from source. That's not currently done in nixpkgs though, and I imagine most modern go code won't work at all on it.16:10:14
@jrick:zettaport.comjricklooks like gccgo is stuck at go 1.1816:11:15
@sandro:supersandro.deSandro ๐Ÿงthen I am against using that per default on those platforms as we don't gain much with it16:15:20
@k900:0upti.meK900+1 against because if we do that it'll only be a matter of time before Go package maintainers get yelled at because their shit doesn't build on ppc32 or whatever the fuck16:18:42
@k900:0upti.meK900And it will be gccgo's fault16:18:58
@opna2608:matrix.orgPuna bootstrapping Go via gccgo is cool, but it doesn't help me because Go is intentionally-borked on ppc64 baseline, and will likely never get fixed unless someone forks & maintains it.
and i definitely don't have the spoons for that ๐Ÿซ .
16:42:42
@pyrox:pyrox.devdish [Fox/It/She] 1.18 without generics, even 16:46:13
@pyrox:pyrox.devdish [Fox/It/She]so definitely opposing this PR being merged16:46:20
@opna2608:matrix.orgPuna that would happen like once in a decade or so, but fair ig.
option to buildGoModule that marks gccgo-support (default false) and affects the derivation's platforms / badPlatforms / broken / whatever?
16:55:01

Show newer messages


Back to Room ListRoom Version: 9