From befeb95c2ac1c6ec0dca1a8c827aeecfb00df212 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Fri, 22 Mar 2024 11:01:21 +0100 Subject: [PATCH] fix: pin go version to avoid test errors Because I specified go >= 1.20, we were using go1.22.1 where there's an os.fileWithoutWriteTo instead of *os.File. --- .github/workflows/go.yml | 2 +- README.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 39a10830..3814f7ee 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: ">=1.20.6" + go-version: "1.20.14" - name: Build run: go build -v ./... diff --git a/README.md b/README.md index fa168db9..1da2765d 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,8 @@ the `Request` and `Response` fields; - [ ] run `go get -u -v ./... && go mod tidy`; +- [ ] make sure the Go version used by GitHub actions is correct; + - [ ] commit the changes and push `merged-main` to gitub; - [ ] open a PR using this check-list as part of the PR text and merge it *using a merge commit*;