Skip to content

Commit

Permalink
Fix for failing builds (#2284)
Browse files Browse the repository at this point in the history
* Replace golang-ci install path

Noticed builds failing to download this script. Docs are updated with a new install path direct from GitHub - https://golangci-lint.run/usage/install/#other-ci

* Workaround bot protection on docs.github.com

There seems to be bot protection on docs.github.com which can be bypassed by requesting compressed content - github/docs#17358 (comment)
  • Loading branch information
csainty authored Jun 4, 2022
1 parent 8e84311 commit 591c4da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
muffet \
-e 'https://github\.com/runatlantis/atlantis/edit/master/.*' \
-e 'https://github.com/helm/charts/tree/master/stable/atlantis#customization' \
--header 'Accept-Encoding:deflate, gzip' \
--buffer-size 8192 \
http://localhost:8080/
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ lint: ## Run linter locally
golangci-lint run

check-lint: ## Run linter in CI/CD. If running locally use 'lint'
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b ./bin v1.39.0
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.39.0
./bin/golangci-lint run -j 4 --timeout 5m

check-fmt: ## Fail if not formatted
Expand Down

0 comments on commit 591c4da

Please sign in to comment.