Skip to content

Commit

Permalink
docs: add tiny reference for the .tool-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Aug 15, 2023
1 parent fde5dd2 commit 721bdf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ If both the `go-version` and the `go-version-file` inputs are provided then the

If the file contains only major and minor (e.g. 1.18) tags, the action will search for the latest available patch version sequentially in the runner's directory with the cached tools, in the [version-manifest.json](https://github.com/actions/go-versions/blob/main/versions-manifest.json) file or at the go servers.

### If the go.mod file
### If the go.mod or .tool-versions files

The `go-version-file` input accepts a path to a `go.mod` file or a `go.work` file that contains the version of Go to be used by a project. As the `go.mod` file contains only major and minor (e.g. 1.18) tags, the action will follow the above-mentioned approach.
The `go-version-file` input accepts a path to a `go.mod` file, `.tool-versions` file or a `go.work` file that contains the version of Go to be used by a project. As the `go.mod` file contains only major and minor (e.g. 1.18) tags, the action will follow the above-mentioned approach.

> The action will search for the `go.mod` file relative to the repository root

Expand Down

0 comments on commit 721bdf3

Please sign in to comment.