feat(syncing): maintained RBSR fingerprint index for fast blob propagation #576
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint Go | |
| on: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/lint-go.yml' | |
| - 'backend/**/*.go' | |
| branches-ignore: | |
| - 'renovate/**' | |
| # Based on https://github.com/golangci/golangci-lint-action readme. | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-go: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.26.2' | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| # backend/llm/backends/llamacpp/llamacpp.go has `//go:embed models/*.gguf`. | |
| # That directive requires *some* file matching the glob to exist at | |
| # type-check time. golangci-lint never executes the embedded data, so a | |
| # one-byte stub satisfies the compiler without downloading ~100 MB of | |
| # model weights. | |
| - name: Create GGUF stub for go:embed | |
| run: | | |
| mkdir -p backend/llm/backends/llamacpp/models | |
| printf 'lint-stub\n' > backend/llm/backends/llamacpp/models/lint-stub.gguf | |
| - uses: golangci/[email protected] | |
| with: | |
| version: v2.12.2 | |
| only-new-issues: true | |
| args: --timeout=5m |