Nix + Go | 220 Members | |
| Go packaging for and with Nixpkgs. | Be excellent to each other. | 46 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 May 2024 | ||
| 10:31:33 | ||
| 10:49:24 | ||
| 15 May 2024 | ||
| 12:00:55 | ||
hi! I'm trying to run guac. made a first stab at it in https://github.com/raboof/guac/commit/b4251b9719e98e2a8b689088d71304d36250019d , but building it gives me some errors like cannot find module providing package github.com/aws/aws-sdk-go-v2/aws/protocol/xml: import lookup disabled by -mod=vendor. Indeed they don't seem to be in the gomod2nix.toml generated by gomod2nix generate. Any ideas what could be the matter? | 12:02:48 | |
github.com/aws/aws-sdk-go-v2/aws/protocol/xml indeed isn't in go.sum, even after go mod tidy | 12:36:45 | |
In reply to @raboof:matrix.orgWell, that's not a module but a package, right? https://github.com/aws/aws-sdk-go-v2/tree/v1.26.1/aws/protocol/xml Seems to belong to the module github.com/aws/aws-sdk-go-v2 | 12:46:41 | |
| gotcha - sorry, my go is rusty (no pun intended 😆). that's a good lead, digging further. | 13:05:20 | |
| https://github.com/nix-community/gomod2nix/pull/158 🎉 | 14:07:48 | |
| 16 May 2024 | ||
| 14:30:07 | ||
| 21:04:56 | ||
| 17 May 2024 | ||
| does the go builder have an interface for disabling tests? | 08:21:48 | |
| I've usually gone and just yeeted individual test files, which seems rather coarse | 08:22:04 | |
| https://nixos.org/manual/nixpkgs/unstable/#ssec-skip-go-tests | 08:22:47 | |
| Not really, but letting Go skip test cases is slightly cleaner and less error prone than removing test files. | 08:23:48 | |
| Already thought about moving that into an input, but not sure it is worth it. | 08:24:44 | |
| * hexa: https://nixos.org/manual/nixpkgs/unstable/#ssec-skip-go-tests | 08:25:06 | |
| ah neat, thanks for pointing that out | 08:25:32 | |
| and yeah, if that code is well tested, port it into the builder | 08:36:40 | |
| makes people less likely to apply crude hacks | 08:37:06 | |
in python we have pytestFlagsArray and on top of that disabledTests and disabledTestsPath fwiw | 08:37:44 | |
that would map to checkFlags and skippedTests | 08:37:58 | |
| 18 May 2024 | ||
| 12:27:42 | ||
| 20 May 2024 | ||
| 23:24:04 | ||
| 21 May 2024 | ||
| 04:34:16 | ||
| 06:41:53 | ||
| 22 May 2024 | ||
| 03:26:46 | ||
| Hey! I'm new to the nix build game and trying to get over an error I'm having when attempting to build a go project. I've already posted on the discord with no response(just impatient), but thought to post here as well: I just started running into an issue referenced here: https://github.com/nix-community/gomod2nix/issues/98 I'm on go 1.22 and not sure how to resolve this issue during the buildPhase. Here is a snippet of how I'm running my phases:
I've been trying different ways of getting it build such as vendoring prior and generating and having no real success. Here's the error:
I've already synced, deleted cache, re-vendored and added the -mod=vendor flags when running commands. This is the first time trying out a build step using nix, so any help would be really appreciated. There are a few things which I just might not be cognisant of when it comes to behaviour - such as what happens during the preBuild and buildPhase for it error out like that and that even though I'm synced, it still prompts this error | 03:32:41 | |
| 15:25:59 | ||
| 15:28:13 | ||
| 16:18:39 | ||