!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

206 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.48 Servers

Load older messages


SenderMessageTime
20 Aug 2025
@pyrox:pyrox.devdish [Fox/It/She]* (i'm aware this is broken on darwin, i think doing c compiler -> 1.4 -> 1.17 would be better and maybe even faster than gccgo anyways, so I'm gonna work on that)19:19:22
@pyrox:pyrox.devdish [Fox/It/She]i am in mental anguish why cant we have nice things(full source bootstraps)19:21:24
@pyrox:pyrox.devdish [Fox/It/She]screenshot-2025-08-20_15-20-10.png
Download screenshot-2025-08-20_15-20-10.png
19:21:24
21 Aug 2025
@nazarewk:matrix.orgkdnHow do I package up a Go app from local sources?10:07:36
@nazarewk:matrix.orgkdn* How do I package up a Go app from local sources? I think I had some trouble with hashes previously10:07:52
@j-k:matrix.orgj-k should just be usual buildGoModule definition with src = ./some/local/path; and normal correct handling of vendorHash
(unless your local src has symlinks outside of ./)
10:40:36
@j-k:matrix.orgj-k Make sure when you do your first build you provide an invalid vendorHash. Then it'll tell you the actual value and you can put that in.
If you're still getting mismatches across platforms e.g. linux and darwin/mac you might want to restart that whole process but with proxyVendor = true; included`
10:41:53
@nazarewk:matrix.orgkdn j-k: how about vendorHash = null;? I've seen it suggested somewhere 11:56:40
@katexochen:matrix.orgPaul Meyer (katexochen) You can do that. Either way you'll have a manual step to do after dependencies in go.mod changed, either running go mod vendor again or updating the vendorHash. 12:12:16
@j-k:matrix.orgj-k yeah vendorHash = null; is for if youre vendoring your own dependencies already. E.g. lazygit has this dir https://github.com/jesseduffield/lazygit/tree/master/vendor 12:20:39
@j-k:matrix.orgj-k * yeah vendorHash = null; is for if youre vendoring your own dependencies already. E.g. lazygit has this dir https://github.com/jesseduffield/lazygit/tree/master/vendor so nothing else needs to be fetched 12:21:06
@pyrox:pyrox.devdish [Fox/It/She] updated this to keep binary bootstraps for darwin/loong64 14:01:38
@pyrox:pyrox.devdish [Fox/It/She]tests seem to be borked because ofborg is screwed? like the nix daemon just dies with no other output14:55:35
@pyrox:pyrox.devdish [Fox/It/She]wild14:55:37
22 Aug 2025
@pyrox:pyrox.devdish [Fox/It/She]I really dont like how so many platforms can't bootstrap from source, but its inevitable I suppose. Just a bit frustrating that the only thing that bootstraps properly is Linux on non-loong64. No darwin or freebsd builds, which just kinda sucks because those are fairly notable platforms. Hopefully gccgo can support darwin in the future or something else comes along that can help us with easier bootstrapping00:50:46
@opna2608:matrix.orgPuna don't know if this is interesting to ppl here, but i made a pr to allow usage of gccgo for buildGoModule: https://github.com/NixOS/nixpkgs/pull/430137 12:44:16
@opna2608:matrix.orgPuna (mainly to enable very basic go things on powerpc64, where normal go is unusable IMO) 12:46:07
@nazarewk:matrix.orgkdnok, so I was not seeing any errors because I don't have any dependencies yet then16:06:23
@j-k:matrix.orgj-kDo you have any error messages or issues/tickets related to the other platform build failures?16:37:36
@pyrox:pyrox.devdish [Fox/It/She] there's a bug report for gccgo about darwin not being supported https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986 17:06:24
@pyrox:pyrox.devdish [Fox/It/She]and I got a report from someone in my bootstrap PR that freebsd got broken, and also notes that loongarch64 isn't supported for early enough versions to bootstrap17:07:01
@pyrox:pyrox.devdish [Fox/It/She]loong64 only supports 1.19+ and we need 1.17+ support for bootstrap17:08:26
@pyrox:pyrox.devdish [Fox/It/She]* loong64 only supports 1.19+ and we need 1.17 support for bootstrap(along with gccgo but thats more reliable to have on some platforms)17:08:48
@pyrox:pyrox.devdish [Fox/It/She]and go 1.4 does not support aarch64 darwin, so that does not work as a non-gccgo bootstrap path for darwin17:09:12
@pyrox:pyrox.devdish [Fox/It/She]* loong64 only supports 1.19+ and we need 1.17 support for bootstrap(along with gccgo but thats more reliable to have on some platforms because gcc)17:09:35
@pyrox:pyrox.devdish [Fox/It/She]I don't have any error messages or logs for bootstrap failures though, just going off of documentation and comments I've recieved17:14:39
26 Aug 2025
@limuz:matrix.orgWebPirat joined the room.04:35:44
@bashfulrobot.:matrix.orgbashfulrobot changed their profile picture.16:40:50
29 Aug 2025
@luna-null:matrix.org@luna-null:matrix.org left the room.02:40:15
@bienkma:matrix.orgbienkma joined the room.03:49:23

Show newer messages


Back to Room ListRoom Version: 9