!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

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

Load older messages


SenderMessageTime
5 Jan 2024
@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.orgvfaust403And 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.orgvfaust403Ah17:10:39
@faust403:matrix.orgvfaust403Nice, i got it17:10:47
@faust403:matrix.orgvfaust403You are magician, thank you very much17:11:06
@faust403:matrix.orgvfaust403By 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.orgvfaust403As I understood, the problem was triggered because of shared linking with dangling paths17:13:07
@faust403:matrix.orgvfaust403So, 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.orgvfaust403trimpath 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.orgvfaust403buildGoModule placing every binary in $out/bin ? 17:32:16
@faust403:matrix.orgvfaust403image.png
Download image.png
17:33:25
@faust403:matrix.orgvfaust403Strange libraries17:33:27
@qbit:tapenet.org@qbit:tapenet.orgya, buildGoModule does TheRightThing™17:35:39
@faust403:matrix.orgvfaust403meaningful names is a good idea17:39:28
@qbit:tapenet.org@qbit:tapenet.orgno idea what those names are about :P17:39:50
@faust403:matrix.orgvfaust403ROFL17:42:58
@faust403:matrix.orgvfaust403This one who starts with R building with error17:43:08
@faust403:matrix.orgvfaust403I have no any idea now how to install it 17:43:28
@faust403:matrix.orgvfaust403ahahhaha i love go17:43:30
@faust403:matrix.orgvfaust403image.png
Download image.png
17:43:35
@qbit:tapenet.org@qbit:tapenet.orgwhat are you trying to install?17:43:45
@faust403:matrix.orgvfaust403This package17:43:54
@faust403:matrix.orgvfaust403nix-env -i .17:43:57

Show newer messages


Back to Room ListRoom Version: 9