| 28 Feb 2024 |
kirillrdy | no i have not, I am happy to have a look at them | 10:31:04 |
| 4 Mar 2024 |
Sandro 🐧 | Do we have some script/GHA/etc to extract the vendor hash when updating golang dependencies, so that it can be automatically updated for a git flake in the same repo? | 10:14:07 |
Paul Meyer (katexochen) | In reply to @sandro:supersandro.de Do we have some script/GHA/etc to extract the vendor hash when updating golang dependencies, so that it can be automatically updated for a git flake in the same repo? Is nix-update --version=skip --flake attr what you are looking for? | 14:19:25 |
Sandro 🐧 | Does that work when I am in the upstream repo itself and just want to update the vendorHash? | 14:20:00 |
Paul Meyer (katexochen) | it does | 14:20:22 |
Paul Meyer (katexochen) | We use renovate at work to update Go deps, and the following action to push vendorHash updates on renovate PRs:
https://github.com/edgelesssys/uplosi/blob/main/.github/workflows/lint.yml#L85-L126 | 14:22:02 |
@adam:robins.wtf | So it looks like just running nix-update then? | 14:52:56 |
@adam:robins.wtf | * So it looks like just running nix-update and skipping the version then? | 14:53:40 |
diamond (it/its) | personally if I'm having a workflow for my own repo, I tend to use gomod2nix and have it maintain that instead of the vendorHash | 14:54:45 |
diamond (it/its) | something like this: https://github.com/diamondburned/dissent/blob/main/.github/workflows/publish.yml#L30-L65 | 14:55:17 |
| 5 Mar 2024 |
| 渔棠 joined the room. | 03:21:28 |
Sandro 🐧 | In reply to @diamondburned:matrix.org personally if I'm having a workflow for my own repo, I tend to use gomod2nix and have it maintain that instead of the vendorHash That brings a whole bunch of new problems with it, especially since go is such picky about it's deps | 10:31:06 |
diamond (it/its) | what are the problems? | 10:57:58 |
Sandro 🐧 | The previous version of such a tool, vgo2nix, just didn't worked with some combination of dependencies | 13:50:21 |
Sandro 🐧 | also it makes remote building a pain | 13:50:28 |
Sandro 🐧 | * also it makes remote building a take a longer time | 13:50:35 |
diamond (it/its) | In reply to @sandro:supersandro.de The previous version of such a tool, vgo2nix, just didn't worked with some combination of dependencies hm, never had such a program with gomod2nix | 14:06:37 |
diamond (it/its) | not too sure about remote building either | 14:06:46 |
diamond (it/its) | * hm, never had such a problem with gomod2nix | 14:07:02 |
diamond (it/its) | given how it works, that would make sense | 14:07:12 |