The nix store may have stale vendor directories with incorrect
permissions. Force chmod before removing to ensure clean build.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The auto-computed vendorHash for the go modules is:
sha256-PTD4eEEkLGBCZbot6W4U+sMOpIbH2tcFSztQel7hyXI=
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The go.mod changes (goquery downgrade, x/net replace) invalidate the
old vendorHash. Set to empty to auto-recompute, then replace with the
actual hash from the build error.
vendorHash was empty, causing build failures. The hash was
obtained by running the build once and using the error output.
Tests are skipped because they require network access; CI runs
them via the test workflow.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- flake.nix now exports packages, NixOS module, and dev shell
- NixOS module: services.gosearch
- Configurable port, base URL, user/group, state dir
- Creates system user automatically
- Runs as systemd service with auto-restart
- Optional firewall opening
- To deploy on your NixOS VPS:
1. Get the vendor hash: nix build .#packages.x86_64-linux.default (copy the hash)
2. Add to your flake inputs and imports
3. Enable in configuration.nix
Implement an API-first Go rewrite with local engine adapters, upstream fallback, and Nix-based tooling so searches can run without matching the original UI while preserving response compatibility.
Made-with: Cursor