!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

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

Load older messages


SenderMessageTime
5 Jan 2024
@faust403:matrix.org@faust403:matrix.orgOne moment17:04:09
@faust403:matrix.org@faust403:matrix.orgAnd previously you got same error ?17:04:26
@faust403:matrix.org@faust403:matrix.orgWith my default.ni17:04:32
@faust403:matrix.org@faust403:matrix.org * With my default.nix17:04:38
@qbit:tapenet.org@qbit:tapenet.orgif you remove the cgo and trimpath stuff it will hit the issue with the embedded /build17:04:54
@faust403:matrix.org@faust403:matrix.orgOh, thank you 17:05:50
@faust403:matrix.org@faust403:matrix.orgIt works17:05:51
@faust403:matrix.org@faust403:matrix.orgBut why? I removed gcc17:06:01
@qbit:tapenet.org@qbit:tapenet.orgthat -X line is just setting a variable - it isn't actually changing any build stuff17:06:43
@qbit:tapenet.org@qbit:tapenet.orgCGO and trimpath make it work by telling go that the build needs to be reproducible 17:07:09
@qbit:tapenet.org@qbit:tapenet.orgso go will remove references to full paths like th wasm thing17:07:23
@faust403:matrix.org@faust403:matrix.orgAnd by default cgo is enabled ?17:08:26
@qbit:tapenet.org@qbit:tapenet.org=0 tells go to make a static binary17:10:25
@faust403:matrix.org@faust403:matrix.orgAh17:10:39
@faust403:matrix.org@faust403:matrix.orgNice, i got it17:10:47
@faust403:matrix.org@faust403:matrix.orgYou are magician, thank you very much17:11:06
@faust403:matrix.org@faust403:matrix.orgBy default I should enable this thing in future everywhere17:11:29
@qbit:tapenet.org@qbit:tapenet.orgno, you usually don't have to 17:12:02
@faust403:matrix.org@faust403:matrix.orgAs I understood, the problem was triggered because of shared linking with dangling paths17:13:07
@faust403:matrix.org@faust403:matrix.orgSo, static building fix it17:13:25
@qbit:tapenet.org@qbit:tapenet.orgstatic build was part of the fix - trimpath was the other17:13:36
@faust403:matrix.org@faust403:matrix.orgtrimpath removing some dirs from path ?17:14:57
@qbit:tapenet.org@qbit:tapenet.orgya, if you look at the binary from the failing build it has the explicit path to the vendor derectory for CosmWasm/wasmvm17:25:11
@qbit:tapenet.org@qbit:tapenet.org oh no, seems i am mistaken - only adding CGO_ENABLED = 0; does fix it 17:28:20
@faust403:matrix.org@faust403:matrix.orgbuildGoModule placing every binary in $out/bin ? 17:32:16
@faust403:matrix.org@faust403:matrix.orgimage.png
Download image.png
17:33:25
@faust403:matrix.org@faust403:matrix.orgStrange libraries17:33:27
@qbit:tapenet.org@qbit:tapenet.orgya, buildGoModule does TheRightThing™17:35:39
@faust403:matrix.org@faust403:matrix.orgmeaningful names is a good idea17:39:28
@qbit:tapenet.org@qbit:tapenet.orgno idea what those names are about :P17:39:50

Show newer messages


Back to Room ListRoom Version: 9