mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
ci: stop the lint gate fetching its schema over the network (#1335)
golangci-lint-action verifies .golangci.yml against a JSONSchema it pulls
from https://golangci-lint.run before it lints anything. On d352696 that
fetch hit its client timeout and took the required ubuntu leg of Server
Build & Test red -- with zero linters run and nothing wrong with the code.
Turn the pass off. `golangci-lint run` already rejects a malformed config
on its own, so the only thing lost is a nicer error message for a config
typo, and the thing gained is a required gate that no longer depends on a
third-party website being reachable.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -96,11 +96,18 @@ jobs:
|
||||
path: Server/coverage.out
|
||||
retention-days: 7
|
||||
|
||||
# verify: false — the action's default `config verify` pass fetches
|
||||
# golangci-lint.run's JSONSchema over HTTPS before linting anything, so a
|
||||
# timeout on that host fails a required job having run zero linters (it
|
||||
# took main red on d352696). `golangci-lint run` rejects a bad config on
|
||||
# its own; the schema pass only bought a prettier error message, priced
|
||||
# at a third-party site inside the gate.
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
|
||||
with:
|
||||
version: v2.11.3
|
||||
working-directory: Server/
|
||||
verify: false
|
||||
|
||||
client-check:
|
||||
name: Client Static Checks
|
||||
|
||||
Reference in New Issue
Block a user