- Created detailed QA testing report documenting the authentication issues with certificate endpoints, including test results and root cause analysis. - Added final QA report confirming successful resolution of the authentication issue, with all tests passing and security verifications completed. - Included test output logs before and after the fix to illustrate the changes in endpoint behavior. - Documented the necessary code changes made to the route registration in `routes.go` to ensure proper application of authentication middleware.
26 lines
612 B
Bash
Executable File
26 lines
612 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Clear Go caches and gopls cache
|
|
echo "Clearing Go build and module caches..."
|
|
go clean -cache -testcache -modcache || true
|
|
|
|
echo "Clearing gopls cache..."
|
|
rm -rf "${XDG_CACHE_HOME:-$HOME/.cache}/gopls" || true
|
|
|
|
echo "Re-downloading modules..."
|
|
cd backend || exit 1
|
|
go mod download
|
|
|
|
echo "Caches cleared and modules re-downloaded."
|
|
|
|
# Provide instructions for next steps
|
|
cat <<'EOF'
|
|
Next steps:
|
|
- Restart your editor's Go language server (gopls)
|
|
- In VS Code: Command Palette -> 'Go: Restart Language Server'
|
|
- Verify the toolchain:
|
|
$ go version
|
|
$ gopls version
|
|
EOF
|