diff --git a/docs/superpowers/plans/2026-03-21-gosearch-integration.md b/docs/superpowers/plans/2026-03-21-gosearch-integration.md index 6cda1e7..d0d8df0 100644 --- a/docs/superpowers/plans/2026-03-21-gosearch-integration.md +++ b/docs/superpowers/plans/2026-03-21-gosearch-integration.md @@ -50,6 +50,8 @@ inputs = { Run: `nix flake update --commit-lockfile` Expected: Lockfile updates successfully, no errors +**Note:** The gosearch flake has a placeholder `vendorHash = ""` in its flake.nix. During the first `nixos-rebuild build`, Nix will fail with the correct hash. This is expected — you'll need to copy that hash into the gosearch flake and run `nix flake update` again. Alternatively, if gosearch's repository has been updated with the correct hash, this step will work immediately. + - [ ] **Step 3: Commit** ```bash @@ -353,8 +355,11 @@ Expected: HTTP 200 OK response via nginx - [ ] **Step 8: Test search functionality** -Run: `curl "https://search2.ashisgreat.xyz/search?q=test&format=json"` -Expected: JSON response with search results +Run: `curl -s "https://search2.ashisgreat.xyz/search?q=nixos&format=json" | jq -e '.results | length > 0'` +Expected: Output is `true` (indicating search returned non-empty results) + +**Alternative (without jq):** Run: `curl -s "https://search2.ashisgreat.xyz/search?q=nixos&format=json" | grep -o '"results":\s*\[' | wc -l` +Expected: Output is `1` or more (results array is present) - [ ] **Step 9: Check kafka logs for Valkey connection**