!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

226 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.46 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
30 May 2025
@jrick:zettaport.comjrickGOMODCACHE will override where modules are downloaded to18:27:52
@jrick:zettaport.comjrick it can also be cleared at any time with go clean -modcache 18:28:39
@s_r:matrix.org@s_r:matrix.orgyeah, exactly. I think what I would like is a specific GOMODCACHE AND GOPATH for each nix shell18:29:35
@s_r:matrix.org@s_r:matrix.org* yeah, exactly. I think what I would like is a specific GOMODCACHE and GOPATH for each nix shell18:29:47
@s_r:matrix.org@s_r:matrix.orgso that you don't get binaries pulled from your home18:30:06
@k900:0upti.meK900 ⚡️ I'm pretty sure you can do that with buildGoModule? 18:30:21
@k900:0upti.meK900 ⚡️Though you'll have to keep your vendorHash in sync 18:30:34
@jrick:zettaport.comjrickforget GOPATH exists, the ones that matter are GOCACHE and GOMODCACHE18:31:18
@s_r:matrix.org@s_r:matrix.orgI guess the thing that got me thinking about this is that I need to download any given module once, the first time I need it, but then I don't need to do that again even if I'm in a different shell18:34:07
@s_r:matrix.org@s_r:matrix.orgwhich is convenient, but was counter intuitive at first18:34:32
@s_r:matrix.org@s_r:matrix.orgI think I can live with that given that there is still a vendor hash18:34:55
@jrick:zettaport.comjrickgo's tooling already handles that with the module cache (albeit per-user)18:35:14
@s_r:matrix.org@s_r:matrix.orgyeah, I know18:35:25

Show newer messages


Back to Room ListRoom Version: 9