Skip to content

Commit

Permalink
Pin Go version
Browse files Browse the repository at this point in the history
This is required in a couple situations:

- On GitHub Actions, to avoid running whatever version that comes with
  the 'golangci-lint' action and might break things.
- Locally, when using 'asdf', as the 'go.mod' support[1] is confusing
  and doesn't work flawlessly.

[1]: https://github.com/asdf-community/asdf-golang#version-selection
  • Loading branch information
myhro committed Aug 3, 2024
1 parent 016b7dd commit 8e8b435
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Install dependencies
run: |
pip install yamllint==1.26.*
Expand Down
1 change: 1 addition & 0 deletions .go-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.20

0 comments on commit 8e8b435

Please sign in to comment.