You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This action sets up a go environment for use in actions by:
7
4
@@ -14,7 +11,7 @@ The V5 edition of the action offers:
14
11
15
12
- Upgraded Node.js runtime from node16 to node20
16
13
17
-
See full release notes on the [releases page](https://github.com/actions/setup-go/releases).
14
+
See full release notes on the [releases page](https://github.com/buildpulse/setup-go/releases).
18
15
19
16
# V4
20
17
@@ -24,7 +21,7 @@ The V4 edition of the action offers:
24
21
25
22
The action will try to enable caching unless the `cache` input is explicitly set to false.
26
23
27
-
Please see "[Caching dependency files and build outputs](https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs)" for more information.
24
+
Please see "[Caching dependency files and build outputs](https://github.com/buildpulse/setup-go#caching-dependency-files-and-build-outputs)" for more information.
28
25
29
26
# V3
30
27
@@ -51,7 +48,7 @@ Matching by [semver spec](https://github.com/npm/node-semver):
51
48
```yaml
52
49
steps:
53
50
- uses: actions/checkout@v4
54
-
- uses: actions/setup-go@v5
51
+
- uses: buildpulse/setup-go@v5
55
52
with:
56
53
go-version: '^1.13.1'# The Go version to download (if necessary) and use.
57
54
- run: go version
@@ -60,7 +57,7 @@ steps:
60
57
```yaml
61
58
steps:
62
59
- uses: actions/checkout@v4
63
-
- uses: actions/setup-go@v5
60
+
- uses: buildpulse/setup-go@v5
64
61
with:
65
62
go-version: '>=1.17.0'
66
63
- run: go version
@@ -79,7 +76,7 @@ Matching an unstable pre-release:
79
76
```yaml
80
77
steps:
81
78
- uses: actions/checkout@v4
82
-
- uses: actions/setup-go@v5
79
+
- uses: buildpulse/setup-go@v5
83
80
with:
84
81
go-version: '1.18.0-rc.1' # The Go version to download (if necessary) and use.
85
82
- run: go version
@@ -88,7 +85,7 @@ steps:
88
85
```yaml
89
86
steps:
90
87
- uses: actions/checkout@v4
91
-
- uses: actions/setup-go@v5
88
+
- uses: buildpulse/setup-go@v5
92
89
with:
93
90
go-version: '1.16.0-beta.1' # The Go version to download (if necessary) and use.
94
91
- run: go version
@@ -103,7 +100,7 @@ See [action.yml](action.yml)
103
100
```yaml
104
101
steps:
105
102
- uses: actions/checkout@v4
106
-
- uses: actions/setup-go@v5
103
+
- uses: buildpulse/setup-go@v5
107
104
with:
108
105
go-version: '1.16.1' # The Go version to download (if necessary) and use.
109
106
- run: go run hello.go
@@ -124,7 +121,7 @@ want the most up-to-date Go version to always be used.
124
121
```yaml
125
122
steps:
126
123
- uses: actions/checkout@v4
127
-
- uses: actions/setup-go@v5
124
+
- uses: buildpulse/setup-go@v5
128
125
with:
129
126
go-version: '1.14'
130
127
check-latest: true
@@ -145,7 +142,7 @@ set to `true`
145
142
```yaml
146
143
steps:
147
144
- uses: actions/checkout@v4
148
-
- uses: actions/setup-go@v5
145
+
- uses: buildpulse/setup-go@v5
149
146
with:
150
147
go-version: 'stable'
151
148
- run: go run hello.go
@@ -154,7 +151,7 @@ steps:
154
151
```yaml
155
152
steps:
156
153
- uses: actions/checkout@v4
157
-
- uses: actions/setup-go@v5
154
+
- uses: buildpulse/setup-go@v5
158
155
with:
159
156
go-version: 'oldstable'
160
157
- run: go run hello.go
@@ -163,7 +160,7 @@ steps:
163
160
## Caching dependency files and build outputs:
164
161
165
162
The action has a built-in functionality for caching and restoring go modules and build outputs. It
166
-
uses [toolkit/cache](https://github.com/actions/toolkit/tree/main/packages/cache) under the hood but requires less configuration settings.
163
+
uses [toolkit/cache](https://github.com/buildpulse/toolkit/tree/main/packages/cache) under the hood but requires less configuration settings.
167
164
The `cache` input is optional, and caching is turned on by default.
168
165
169
166
The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of
@@ -177,7 +174,7 @@ If some problem that prevents success caching happens then the action issues the
177
174
```yaml
178
175
steps:
179
176
- uses: actions/checkout@v4
180
-
- uses: actions/setup-go@v5
177
+
- uses: buildpulse/setup-go@v5
181
178
with:
182
179
go-version: '1.17'
183
180
check-latest: true
@@ -193,8 +190,8 @@ steps:
193
190
194
191
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.
195
192
196
-
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`).
197
-
If a patch version is specified, that specific patch version will be used.
193
+
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`).
194
+
If a patch version is specified, that specific patch version will be used.
198
195
If no patch version is specified, it will search for the latest available patch version in the cache,
199
196
[versions-manifest.json](https://github.com/actions/go-versions/blob/main/versions-manifest.json), and the
200
197
[official Go language website](https://golang.org/dl/?mode=json&include=all), in that order.
@@ -205,7 +202,7 @@ If both the `go-version` and the `go-version-file` inputs are provided then the
205
202
```yaml
206
203
steps:
207
204
- uses: actions/checkout@v4
208
-
- uses: actions/setup-go@v5
205
+
- uses: buildpulse/setup-go@v5
209
206
with:
210
207
go-version-file: 'path/to/go.mod'
211
208
- run: go version
@@ -224,7 +221,7 @@ jobs:
224
221
steps:
225
222
- uses: actions/checkout@v4
226
223
- name: Setup go
227
-
uses: actions/setup-go@v5
224
+
uses: buildpulse/setup-go@v5
228
225
with:
229
226
go-version: ${{ matrix.go }}
230
227
- run: go run hello.go
@@ -252,7 +249,7 @@ If that fails as well the action will try to download versions directly from htt
252
249
If that fails as well you can get a higher rate limit with [generating a personal access token on github.com](https://github.com/settings/tokens/new) and passing it as the `token` input to the action:
0 commit comments