!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

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

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


SenderMessageTime
14 May 2025
@diamondburned:matrix.orgDiamond (it/she) changed their profile picture.01:19:09
@diamondburned:matrix.orgDiamond (it/she) changed their profile picture.02:46:43
15 May 2025
@dgrig:erethon.comdgrig joined the room.13:35:39
@qbit:tapenet.org@qbit:tapenet.org left the room.14:06:15
21 May 2025
@alanpearce:private.coffee@alanpearce:private.coffee left the room.18:50:34
@scl:tchncs.deSebastian (he/him) joined the room.22:19:16
23 May 2025
@silvio:booq.org@silvio:booq.org left the room.08:16:29
@paq:matrix.orgpaq joined the room.21:13:28
26 May 2025
@xengi42:matrix.orgXenGi joined the room.08:12:02
@alisonjenkins:matrix.orgAlison Jenkins joined the room.18:44:40
27 May 2025
@apeioo:matrix.orgLorenz joined the room.11:18:16
28 May 2025
@deeok:matrix.orgmatrixrooms.info mod bot (does NOT read/send messages and/or invites; used for checking reported rooms) joined the room.09:01:47
29 May 2025
@deepreef11:matrix.orgdeepreef11 joined the room.02:58:43
30 May 2025
@s_r:matrix.orgsamuel joined the room.18:00:52
@s_r:matrix.orgsamuel Hi! I'm looking into developing some go, but I'm not sure I fully follow how dependencies are managed for go. For other languages I worked with, they are typically passed into buildInputs, which puts them in the development shell, but for go it seems that they need to be managed by go with go mod. Is that accurate? 18:02:49
@jrick:zettaport.comjrickfor the vast majority of dependencies, yes18:13:22
@jrick:zettaport.comjrickas soon as you start using cgo, those need to be put in the nix inputs18:13:59
@jrick:zettaport.comjrickas the go tooling doesn't know how/where to get those from18:14:12
@s_r:matrix.orgsamuelok, thanks18:17:24
@s_r:matrix.orgsamuelFeels a bit strange that I'll be using different files in the shell than to build the final derivation thought. What's the reason not to feed the dependencies to go as part of the build shell (e.g. by modifying GOPATH the same way the go builder does)?18:19:39
@jrick:zettaport.comjrickgo already has its own (very good) dependency tooling18:22:17
@jrick:zettaport.comjrickbuildGoModule is built to work with that18:22:36
@k900:0upti.meK900
In reply to @s_r:matrix.org
Feels a bit strange that I'll be using different files in the shell than to build the final derivation thought. What's the reason not to feed the dependencies to go as part of the build shell (e.g. by modifying GOPATH the same way the go builder does)?
Go will also explode horribly if you give it a version of an input that is even slightly off
18:22:52
@jrick:zettaport.comjrickpractically every go project in existence uses go modules18:23:06
@k900:0upti.meK900So the whole point of a central package repository is kind of ruined by that 18:23:23

Show newer messages


Back to Room ListRoom Version: 9