| 21 Jul 2025 |
Pol | * I'm going to copy paste a message I wrote in the dev room:
I'm looking for a bit of help for compiling this Go software: https://github.com/NixOS/nixpkgs/pull/427193 (https://github.com/buildpacks/pack). The issue started to appear after they did this: https://github.com/buildpacks/pack/pull/2390 (I added a comment in there just now: https://github.com/buildpacks/pack/pull/2390#issuecomment-3097654347)
When I run the build, it end up with:
> Building subPackage ./testhelpers
> Building subPackage ./testhelpers/comparehelpers
> Building subPackage ./tools
> main module (github.com/buildpacks/pack) does not contain package github.com/buildpacks/pack/tools
For full logs, run:
nix log /nix/store/8rhs2qy6cbk637czra3lw4ydjh90w6xd-pack-0.38.2.drv
Can you help?
| 17:19:38 |
Pol | * I'm going to copy paste a message I wrote in the dev room:
I'm looking for a bit of help for compiling pack (https://github.com/buildpacks/pack): https://github.com/NixOS/nixpkgs/pull/427193. The issue started to appear after they did this: https://github.com/buildpacks/pack/pull/2390 (I added a comment in there just now: https://github.com/buildpacks/pack/pull/2390#issuecomment-3097654347)
When I run the build, it end up with:
> Building subPackage ./testhelpers
> Building subPackage ./testhelpers/comparehelpers
> Building subPackage ./tools
> main module (github.com/buildpacks/pack) does not contain package github.com/buildpacks/pack/tools
For full logs, run:
nix log /nix/store/8rhs2qy6cbk637czra3lw4ydjh90w6xd-pack-0.38.2.drv
Can you help?
| 17:21:36 |
Paul Meyer (katexochen) | Pol: I think you should set subPackages:
subPackages = [ "." ];
| 17:28:43 |
Pol | Let me try | 17:28:52 |
Paul Meyer (katexochen) | The issue is that ./tools is another go module, and buildGoModule can only build packages from one module in one derivation. | 17:29:24 |
Paul Meyer (katexochen) | If you set subPackages, it will just try to build the package you specified instead of using find and assume it can build everything directory in src that has a .go file. | 17:30:30 |
Pol | It worked, thanks !!! | 17:31:06 |
Paul Meyer (katexochen) | You might want to check if there are other binaries that are expected as output, but I didn't find any at first glance. | 17:31:40 |
Pol | Thank you !!! | 17:34:49 |
Pol | Ready for review :) | 17:39:01 |
| 23 Jul 2025 |
| maharshi joined the room. | 14:54:24 |
| 26 Jul 2025 |
| okamis left the room. | 20:38:56 |
| 28 Jul 2025 |
| John joined the room. | 08:03:24 |
Paul Meyer (katexochen) | Anyone time to review https://github.com/NixOS/nixpkgs/pull/427334 ? | 14:40:53 |
| alex left the room. | 21:29:38 |
| 31 Jul 2025 |
| sammy (It/Its) joined the room. | 09:35:01 |
| 3 Aug 2025 |
Sandro 🐧 | Another PR to review https://github.com/NixOS/nixpkgs/pull/387742 | 23:15:39 |
| 5 Aug 2025 |
| isabel changed their profile picture. | 09:49:15 |
| 6 Aug 2025 |
| Frédéric Christ (🧳 12.05. - 02.06.) changed their display name from Frédéric Christ to Frédéric Christ 🏕️ 15.8.. | 08:28:19 |
| 8 Aug 2025 |
| 0x4A6F joined the room. | 06:30:17 |
| 14 Aug 2025 |
| Timur Gainullin joined the room. | 19:18:50 |
| 15 Aug 2025 |
| Frédéric Christ (🧳 12.05. - 02.06.) changed their display name from Frédéric Christ 🏕️ 15.8. to Frédéric Christ. | 10:37:10 |
| 19 Aug 2025 |
| Nila The Dragon joined the room. | 18:28:17 |
Nila The Dragon | Is there a good way to build projects with private dependencies yet? I searched the web a bit but what I found didn't end up working. | 19:03:27 |
| 20 Aug 2025 |
Sandro 🐧 | WDYM by private? | 12:02:57 |
Sandro 🐧 | I just do go vendoring everywhere and then fetch via fetchFromGitHub | 12:03:25 |
Nila The Dragon | We have an internal repo (no vendor folder) and that in turn has other private repos it uses as a dependency. | 12:17:46 |
Sandro 🐧 | turn on vendoring. that is faster for nix and getting it to work in CI | 12:18:09 |
diamond (it/its) | is this just for local dev? direnv + impure + fetchgit might suffice | 18:00:55 |
diamond (it/its) | a while back i made this thread that might be useful https://discourse.nixos.org/t/git-buildgomodule-private-repositories/5167 | 18:02:40 |