Skip to content

Commit

Permalink
fix: pin go version to avoid test errors
Browse files Browse the repository at this point in the history
Because I specified go >= 1.20, we were using go1.22.1 where
there's an os.fileWithoutWriteTo instead of *os.File.
  • Loading branch information
bassosimone committed Mar 22, 2024
1 parent 67ee15c commit befeb95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*;
Expand Down

0 comments on commit befeb95

Please sign in to comment.