From 357b3280d8810bd28be18c073d04e46a43437529 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Sun, 18 Feb 2024 00:18:44 +0900 Subject: [PATCH 1/7] Fix emoji rendering --- docs/contributors.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/contributors.md b/docs/contributors.md index db70597c7..43412122e 100644 --- a/docs/contributors.md +++ b/docs/contributors.md @@ -6,13 +6,13 @@ We have prepared a short guide so that the process of making your contribution i ## How can I contribute... -* [Contribute Documentation:green_book:](#contribute-documentation) +* [Contribute Documentation :green_book:](#contribute-documentation) * [Contribute Code :computer:](#contribute-code) -* [Provide Support on Issues:pencil:](#provide-support-on-issues) +* [Provide Support on Issues :pencil:](#provide-support-on-issues) -* [Review Pull Requests:mag:](#review-pull-requests) +* [Review Pull Requests :mag:](#review-pull-requests) ## Contribute documentation @@ -113,4 +113,4 @@ Another great way to contribute is pull request reviews. Please, be extra kind: - Make sure you're familiar with the code or documentation is updated, unless it's a minor change (spellchecking, minor formatting, etc.) - Review changes using the GitHub functionality. You can ask a clarifying question, point out an error or suggest an alternative. > Note: You may ask for minor changes - "nitpicks", but consider whether they are real blockers to merging or not -- Submit your review, which may include comments, an approval, or a changes request \ No newline at end of file +- Submit your review, which may include comments, an approval, or a changes request From a4fa8f71508cd7c6d51752db23f4dce10f6388d4 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Sun, 18 Feb 2024 00:27:28 +0900 Subject: [PATCH 2/7] Fix quoting --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ba0e451b2..222a2c7d1 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,10 @@ steps: > > ```yaml > go-version: '1.20' -> ``` +> ``` > > The recommendation is based on the YAML parser's behavior, which interprets non-wrapped values as numbers and, in the case of version 1.20, trims it down to 1.2, which may not be very obvious. + Matching an unstable pre-release: ```yaml From f4a0ed48b76741cad60b1a2b196840baeca6fbd7 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Sun, 18 Feb 2024 00:38:42 +0900 Subject: [PATCH 3/7] Remove the description of the old go.mod specification --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 222a2c7d1..bc52f9666 100644 --- a/README.md +++ b/README.md @@ -184,10 +184,7 @@ steps: ## Getting go version from the go.mod file 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 search for the -latest available patch version sequentially in the runner's directory with the cached tools, in -the [versions-manifest.json](https://github.com/actions/go-versions/blob/main/versions-manifest.json) file or at the go -servers. +used by a project. If both the `go-version` and the `go-version-file` inputs are provided then the `go-version` input is used. > The action will search for the `go.mod` file relative to the repository root From ca4321abee075cc5dac53a3ef10d60b107460c56 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Sun, 18 Feb 2024 20:03:16 +0900 Subject: [PATCH 4/7] Remove the single quotes from `go-version-file` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bc52f9666..e6921bdce 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version-file: 'path/to/go.mod' + go-version-file: path/to/go.mod - run: go version ``` From bdc649113dc5895e6f3442fa3fbaf2455fd350f6 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Fri, 5 Apr 2024 00:45:56 +0900 Subject: [PATCH 5/7] Fix README --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index e6921bdce..e5422865c 100644 --- a/README.md +++ b/README.md @@ -183,8 +183,7 @@ steps: ## Getting go version from the go.mod file -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. +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. If both the `go-version` and the `go-version-file` inputs are provided then the `go-version` input is used. > The action will search for the `go.mod` file relative to the repository root From 7d12e2b7324c5ad4cff071aad3e2d861fd644742 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Fri, 5 Apr 2024 02:26:09 +0900 Subject: [PATCH 6/7] Add description about patch versions to README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index e5422865c..70bcdf534 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,12 @@ steps: 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. +The `go` directive in `go.mod` can specify a patch version or omit it altogether (e.g., `go 1.22.0` or `go 1.22`). +If a patch version is specified, that specific patch version will be used. +If no patch version is specified, it will search for the latest available patch version in the cache, +[versions-manifest.json](https://github.com/actions/go-versions/blob/main/versions-manifest.json), and the +[official Go language website](https://golang.org/dl/?mode=json&include=all), in that order. + If both the `go-version` and the `go-version-file` inputs are provided then the `go-version` input is used. > The action will search for the `go.mod` file relative to the repository root From 1e17534d7edb1b802d53b8319da4cda4a7697245 Mon Sep 17 00:00:00 2001 From: Masahiro Furudate <178inaba.git@gmail.com> Date: Wed, 10 Apr 2024 13:25:50 +0900 Subject: [PATCH 7/7] Revert "Remove the single quotes from `go-version-file`" This reverts commit ca4321abee075cc5dac53a3ef10d60b107460c56. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70bcdf534..e3a3d5d6e 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version-file: path/to/go.mod + go-version-file: 'path/to/go.mod' - run: go version ```