From 8e8b435803864b20857cd42e0868cfeefc2980d9 Mon Sep 17 00:00:00 2001 From: Tiago Ilieve Date: Sat, 3 Aug 2024 22:21:22 +0000 Subject: [PATCH] Pin Go version 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 --- .github/workflows/qa.yml | 3 +++ .go-version | 1 + 2 files changed, 4 insertions(+) create mode 100644 .go-version diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 3447c36..19c75d1 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -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.* diff --git a/.go-version b/.go-version new file mode 100644 index 0000000..5fb5a6b --- /dev/null +++ b/.go-version @@ -0,0 +1 @@ +1.20