Repository navigation
update Go and modules - #36
Conversation
2c7b729 to
92a49eb
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The overlay is exported under incompatible per-system attributes, breaking existing consumers and flake checks, while the lint script can silently mask frontend build failures.
2 open issues
What changed in this PR
Updates Audimance’s Go toolchain and dependencies in response to Dependabot alerts, alongside Nix build and development-environment changes.
Changes:
- Raises the Go requirement to 1.26.0 and refreshes module versions and checksums.
- Refactors Nix outputs around
flake-utils, adds a development shell and lint script, and updates the Go vendor hash. - Switches request-logging middleware, corrects port-number error formatting, and ignores local direnv files.
| File | Description |
|---|---|
| main.go | Switches to RequestLogger middleware. |
| internal/osc/osc.go | Formats invalid port numbers as decimal integers. |
| go.sum | Refreshes dependency checksums. |
| go.mod | Updates the Go requirement and module versions. |
| flake.nix | Refactors outputs, adds development tooling, and updates the vendor hash. |
| flake.lock | Locks the new flake-utils and systems inputs. |
| .gitignore | Ignores .direnv and .envrc. |
Review effort: Balanced
92a49eb to
ff13af8
Compare
In flake.nix, copies app/ recursively for the new css folder and updates vendorHash.
|
Actually, it is usually much easier to merge them separately. That makes the review of each smaller and easier. Now that I have merged this one, the diff for the review of #39 has become smaller, and the reviewer (if it was a third person) wouldn't have to deal with as much context. This is because the diff is always against the current target branch ( |
|
These changes were also quite separate, so there aren't any merge conflicts. Even if there were, though, it is usually easier to deal with them in smaller, contextually-focused chunks. |
|
If only we had a third person! ;) |
In flake.nix, copies app/ recursively for the new css folder and updates vendorHash.


Dependabot is complaining, and it has been a while. This is the result of
go mod -u(and then updating the nix vendorHash with the new value), to update the Go dependencies. This should probably also be done for the javascript ones...This also adds a nix devShell in which a "lint" script is available, which will call
golangci-lintafter building the app. This was a pain before because theapp/*files needed to exist beforegolangci-lintcould be run, and with the new build mechanisms, there is no longer a reason to have those built in that location.To note, an easy way to use the dev shell is by creating a
.envrcfile in the root of the repo with the contents:Then, ensure you have
direnvinstalled. After that, when you change into this project's directory, your shell will enter the devShell for this project.