!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

236 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.52 Servers

Load older messages


SenderMessageTime
31 Jan 2023
@qbit:tapenet.org@qbit:tapenet.org you could do something like in pkgs/misc/logging/beats/7.x.nix 15:29:57
@qbit:tapenet.org@qbit:tapenet.orgis the go source in the kitty repo? 15:30:30
@qbit:tapenet.org@qbit:tapenet.orgoh, sorry - i though tbeats was building some other non-go package, looks like they are all go15:30:57
@adam:valkor.net@adam:valkor.netlooks like yes https://github.com/kovidgoyal/kitty/tree/master/tools/cli15:31:21
@qbit:tapenet.org@qbit:tapenet.orgmaybe just have the go 1.19 compiler available and use the existing derivation ? 15:33:37
@qbit:tapenet.org@qbit:tapenet.orgit's not immediately clear where it's actually building the go stuff (nothing obvious in the makefile)15:34:10
@adam:valkor.net@adam:valkor.netthe modules aren't vendored though, so it looks like it's failing on pulling them15:34:13
@qbit:tapenet.org@qbit:tapenet.orgohhh, gross15:34:25
@qbit:tapenet.org@qbit:tapenet.org maybe have a let theSource = fetchFromGitHub {} and use that in two different derivations? 15:35:55
@qbit:tapenet.org@qbit:tapenet.org not sure how you'd combine it back into one though.. maybe makeWrapper 15:36:13
@adam:valkor.net@adam:valkor.netugh. https://github.com/kovidgoyal/kitty/blob/5a997a5f7a3f28dec1f9675cd434ae6d2c92837a/setup.py#L89915:38:21
@qbit:tapenet.org@qbit:tapenet.orggross15:39:05
* @qbit:tapenet.org@qbit:tapenet.org has flashbacks of node-gyp15:39:16
@sandro:supersandro.deSandro 🐧you probably want to build that in an extra derivation and copy over to the python stuff17:14:46
@adam:valkor.net@adam:valkor.netYeah, that's what I'm working on now18:20:04
@adam:valkor.net@adam:valkor.netok, here's another question. How can I deal with the improper module name in the go.mod? https://github.com/kovidgoyal/kitty/blob/5a997a5f7a3f28dec1f9675cd434ae6d2c92837a/go.mod#L120:39:15
@adam:valkor.net@adam:valkor.netPatch the entire project? Or....?20:39:31
@qbit:tapenet.org@qbit:tapenet.orguuugh20:41:11
@adam:valkor.net@adam:valkor.netyeah, i will report it upstream as well20:41:37
@qbit:tapenet.org@qbit:tapenet.orgmaybe you could do the vendor dance initially (to get the vendor dir), then disable go modules and do the build..20:41:55
@qbit:tapenet.org@qbit:tapenet.orgmaybe.. i am not sure our buildGo stuff will permit that20:42:06
@qbit:tapenet.org@qbit:tapenet.orgprobably be easier to patch all the go files though20:42:57
@adam:valkor.net@adam:valkor.netI don't think that's actually my problem. Sigh.20:55:56
@adam:valkor.net@adam:valkor.netpython is being used to generate go code20:56:23
@adam:valkor.net@adam:valkor.netThough this worked well: https://github.com/sirkon/go-imports-rename :)20:57:20
@qbit:tapenet.org@qbit:tapenet.orgyay, the sourcehut GOPRIVATE stuff is not gonna happen21:36:58
@qbit:tapenet.org@qbit:tapenet.orgUpdate 2023-01-31: Russ Cox of the Go team reached out to us to address this problem. After some discussion, an acceptable plan was worked out. The Go team is working on deploying an update to the “go” tool to add a -reuse flag, which should substantially reduce the traffic generated by this system for all users of Go.21:37:03
@qbit:tapenet.org@qbit:tapenet.orghttps://sourcehut.org/blog/2023-01-09-gomodulemirror/21:37:09
1 Feb 2023
@sandro:supersandro.deSandro 🐧
In reply to @adam:valkor.net
ok, here's another question. How can I deal with the improper module name in the go.mod? https://github.com/kovidgoyal/kitty/blob/5a997a5f7a3f28dec1f9675cd434ae6d2c92837a/go.mod#L1
haha, good joke
13:40:02
@sandro:supersandro.deSandro 🐧clone the repo and build in place but our tooling could break13:40:24

Show newer messages


Back to Room ListRoom Version: 9