Files
Charon/scripts/clear-go-cache.sh
GitHub Actions 8294d6ee49 Add QA test outputs, build scripts, and Dockerfile validation
- Created `qa-test-output-after-fix.txt` and `qa-test-output.txt` to log results of certificate page authentication tests.
- Added `build.sh` for deterministic backend builds in CI, utilizing `go list` for efficiency.
- Introduced `codeql_scan.sh` for CodeQL database creation and analysis for Go and JavaScript/TypeScript.
- Implemented `dockerfile_check.sh` to validate Dockerfiles for base image and package manager mismatches.
- Added `sourcery_precommit_wrapper.sh` to facilitate Sourcery CLI usage in pre-commit hooks.
2025-12-11 18:26:24 +00:00

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