!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

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

Load older messages


SenderMessageTime
5 Jan 2024
@faust403:matrix.orgVladislav VasilevAnd previously you got same error ?17:04:26
@faust403:matrix.orgVladislav VasilevWith my default.ni17:04:32
@faust403:matrix.orgVladislav Vasilev * 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.orgVladislav VasilevOh, thank you 17:05:50
@faust403:matrix.orgVladislav VasilevIt works17:05:51
@faust403:matrix.orgVladislav VasilevBut 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.orgVladislav VasilevAnd 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.orgVladislav VasilevAh17:10:39
@faust403:matrix.orgVladislav VasilevNice, i got it17:10:47
@faust403:matrix.orgVladislav VasilevYou are magician, thank you very much17:11:06
@faust403:matrix.orgVladislav VasilevBy 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.orgVladislav VasilevAs I understood, the problem was triggered because of shared linking with dangling paths17:13:07
@faust403:matrix.orgVladislav VasilevSo, 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.orgVladislav Vasilevtrimpath 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.orgVladislav VasilevbuildGoModule placing every binary in $out/bin ? 17:32:16
@faust403:matrix.orgVladislav Vasilevimage.png
Download image.png
17:33:25
@faust403:matrix.orgVladislav VasilevStrange libraries17:33:27
@qbit:tapenet.org@qbit:tapenet.orgya, buildGoModule does TheRightThing™17:35:39
@faust403:matrix.orgVladislav Vasilevmeaningful names is a good idea17:39:28
@qbit:tapenet.org@qbit:tapenet.orgno idea what those names are about :P17:39:50
@faust403:matrix.orgVladislav VasilevROFL17:42:58

Show newer messages


Back to Room ListRoom Version: 9