29694d72cd
Add manifest validation and improve error handling ( #586 )
Validate 'setup-go' / setup-versions-from-manifest (1.20.14, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-dist (1.11.12, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-dist (1.11.12, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.20.14, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.21, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.22, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.23, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.20.14, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.20.14, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.21, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.21, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.22, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.22, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.23, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.23, windows-latest) (push) Has been cancelled
Validate Windows installation / Validate if symlink is created (false, 1.20.1) (push) Has been cancelled
Validate Windows installation / Validate if symlink is created (true, 1.20.1) (push) Has been cancelled
Validate Windows installation / Find default go version (push) Has been cancelled
Validate Windows installation / Validate if hostedtoolcache works as expected (false, 1.20.1) (push) Has been cancelled
Validate Windows installation / Validate if symlink is not created for default go (false) (push) Has been cancelled
Validate Windows installation / Validate if symlink is not created for default go (true) (push) Has been cancelled
2025-05-05 22:00:04 -05:00
dca8468d37
Update self-hosted environment validation and bump undici version ( #556 )
...
Validate 'setup-go' / setup-versions-from-manifest (1.20.14, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-dist (1.11.12, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-dist (1.11.12, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.20.14, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.21, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.22, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.23, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.20.14, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.20.14, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.21, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.21, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.22, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.22, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.23, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.23, windows-latest) (push) Has been cancelled
Validate Windows installation / Validate if symlink is created (false, 1.20.1) (push) Has been cancelled
Validate Windows installation / Validate if symlink is created (true, 1.20.1) (push) Has been cancelled
Validate Windows installation / Find default go version (push) Has been cancelled
Validate Windows installation / Validate if hostedtoolcache works as expected (false, 1.20.1) (push) Has been cancelled
Validate Windows installation / Validate if symlink is not created for default go (false) (push) Has been cancelled
Validate Windows installation / Validate if symlink is not created for default go (true) (push) Has been cancelled
* Fix self-hosted environment check
* Update isSelfHosted logic
2025-04-01 10:32:30 -05:00
3041bf56c9
feat: fallback to "raw" endpoint for manifest when rate limit is reached ( #496 )
...
Validate 'setup-go' / setup-versions-from-manifest (1.20.14, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.21.10, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.22.8, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, macos-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-manifest (1.23.2, windows-latest) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-dist (1.11.12, macos-13) (push) Has been cancelled
Validate 'setup-go' / setup-versions-from-dist (1.11.12, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.20.14, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.21, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.22, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (arm64, 1.23, macos-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.20.14, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.20.14, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.21, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.21, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.22, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.22, windows-latest) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.23, macos-13) (push) Has been cancelled
Validate 'setup-go' / architecture (x64, 1.23, windows-latest) (push) Has been cancelled
Validate Windows installation / Validate if symlink is created (false, 1.20.1) (push) Has been cancelled
Validate Windows installation / Validate if symlink is created (true, 1.20.1) (push) Has been cancelled
Validate Windows installation / Find default go version (push) Has been cancelled
Validate Windows installation / Validate if hostedtoolcache works as expected (false, 1.20.1) (push) Has been cancelled
Validate Windows installation / Validate if symlink is not created for default go (false) (push) Has been cancelled
Validate Windows installation / Validate if symlink is not created for default go (true) (push) Has been cancelled
* feat: fallback to "raw" endpoint for manifest when rate limit is reached
* add information about raw access to the README
* prettier
* update cross-spawn to 7.0.6 to fix vulnerability
2024-11-25 12:37:21 -06:00
941977282c
Revise isGhes
logic ( #511 )
...
Validate 'setup-go' / architecture (1.20.14, windows-latest) (push) Waiting to run
Validate 'setup-go' / architecture (1.21, macos-latest) (push) Waiting to run
Validate 'setup-go' / architecture (1.21, windows-latest) (push) Waiting to run
Validate Windows installation / Validate if symlink is created (false, 1.20.1) (push) Waiting to run
Validate Windows installation / Validate if symlink is created (true, 1.20.1) (push) Waiting to run
Validate Windows installation / Find default go version (push) Waiting to run
Validate Windows installation / Validate if symlink is not created for default go (false) (push) Blocked by required conditions
Validate Windows installation / Validate if symlink is not created for default go (true) (push) Blocked by required conditions
Validate Windows installation / Validate if hostedtoolcache works as expected (false, 1.20.1) (push) Waiting to run
Licensed / Licensed (push) Failing after 0s
CodeQL analysis / CodeQL analysis (push) Failing after 2s
Validate 'setup-go' / stable (ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / oldstable (ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / aliases-arch (x32, ubuntu-latest, oldstable) (push) Failing after 35s
Validate 'setup-go' / aliases-arch (x32, ubuntu-latest, stable) (push) Failing after 35s
Validate 'setup-go' / aliases-arch (x64, ubuntu-latest, oldstable) (push) Failing after 35s
Validate 'setup-go' / aliases-arch (x64, ubuntu-latest, stable) (push) Failing after 35s
Validate 'setup-go' / Setup local-cache version (1.20.14, ubuntu-latest) (push) Failing after 37s
Validate 'setup-go' / Setup local-cache version (1.21.10, ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / Setup local-cache version (1.22.3, ubuntu-latest) (push) Failing after 15s
Validate 'setup-go' / check-latest (1.20.14, ubuntu-latest) (push) Failing after 36s
Validate 'setup-go' / check-latest (1.21, ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / go-version-file (ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / go-version-file-with-gowork (ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / Setup ${{ matrix.go }} ${{ matrix.os }} (1.21.10, ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / Setup ${{ matrix.go }} ${{ matrix.os }} (1.22.3, ubuntu-latest) (push) Failing after 34s
Validate 'setup-go' / Setup ${{ matrix.go }} ${{ matrix.os }} (1.20.14, ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / Setup ${{ matrix.go }} ${{ matrix.os }} (1.21, ubuntu-latest) (push) Failing after 34s
Validate 'setup-go' / architecture (1.20.14, ubuntu-latest) (push) Failing after 35s
Validate 'setup-go' / architecture (1.21, ubuntu-latest) (push) Successful in 39m18s
* Revise `isGhes` logic
* ran `npm run format`
* added unit test
* tweaked unit test
* ran `npm run format`
2024-10-21 11:56:08 -05:00
b26d40294f
fix: add arch to cache key ( #493 )
2024-08-26 15:19:57 -05:00
0c52d547c9
Update dependencies for node20 ( #445 )
2023-12-05 17:50:42 +01:00
48ac8fd236
chore: format
2023-08-12 23:57:09 +02:00
89a192af9d
fix: sync .complete marker when caching tools on windows
2023-08-12 23:52:21 +02:00
93397bea11
Fix Install on Windows is very slow ( #393 )
...
* Fix Install on Windows is very slow
* Add unit test
* Improve readability
* Add e2e test
* fix lint
* Fix unit tests
* Fix unit tests
* limit to github hosted runners
* test hosted version of go
* AzDev environment
* rename lnkSrc
* refactor conditions
* improve tests
* refactoring
* Fix e2e test
* improve isHosted readability
2023-08-03 14:33:56 +02:00
4e0b6c77c6
Limit to Linux only
2023-07-10 10:39:55 +02:00
a4d10f0ea4
Add imageOS to primaryKey
...
https://github.com/actions/setup-go/issues/368
2023-07-10 10:17:28 +02:00
fdc0d672a1
Add Go bin if go-version input is empty ( #351 )
2023-03-14 16:29:10 +01:00
ebfdf6ac95
add warning if go-version is empty ( #350 )
2023-03-14 16:07:41 +01:00
c51a720768
Enable caching by default with default input ( #332 )
2023-03-10 16:25:35 +01:00
7406d654ad
Add and configure ESLint and update configuration for Prettier ( #341 )
...
* Turn on ESLint and update Prettier
* Update eslint config
* Update eslint config
* Update dependencies
* Update ESLint and Prettier configurations
* update package.json
* Update prettier command
* Update prettier config file
* Change CRLF to LF
* Update docs
* Update docs
2023-03-08 10:45:16 +02:00
b8eec33327
Merge branch 'main' into use-actual-version-in-cache
2023-01-31 13:39:54 +01:00
807559307d
Use const declarations for variables that are never reassigned ( #322 )
2023-01-31 11:46:49 +01:00
b27afcd9c2
format
2023-01-20 10:28:57 +01:00
65f50caf42
use actual version in key
2023-01-20 01:30:38 +01:00
89d7939d38
use real version instead of spec
2023-01-20 01:28:58 +01:00
2e7414f276
try get path
2023-01-20 01:27:11 +01:00
de201a09c0
log version-spec
2023-01-20 01:21:36 +01:00
17106403fa
Allow to use only GOCACHE for cache ( #305 )
2022-12-19 11:22:17 +01:00
bb5ff97ab9
refactor: Use early return pattern to avoid nested conditions ( #302 )
2022-12-16 15:05:54 +01:00
6edd4406fa
fix log for stable aliases ( #303 )
2022-12-12 15:45:36 +01:00
38dbe75f81
Add stable and oldstable aliases ( #300 )
2022-12-12 10:58:49 +01:00
e983b65a44
Merge pull request #283 from koba1t/add_support_gowork_for_go-version-file
...
add support go.work file for go-version-file
2022-11-08 11:45:09 +01:00
27b43e1b0d
Pass the token input through on GHES ( #277 )
2022-11-02 12:21:18 +01:00
7678c83214
add support gowork for go-version-file
2022-11-01 21:25:30 +09:00
c4a742cab1
fix(): cache resolve version input ( #267 )
2022-10-17 18:33:22 +02:00
c4e169859f
prettier format
2022-09-08 15:11:06 +02:00
db58e98a43
format
2022-09-08 14:53:17 +02:00
5547b9ed8d
fix(cache): Not throw err if no cache folders
2022-09-08 13:18:41 +02:00
be45b2722d
build
2022-09-08 12:29:13 +02:00
268d8c0ca0
Add support for arm32 go arch ( #253 )
2022-08-12 12:29:48 +02:00
e0dce94eb0
Use explicit filename when downloading Windows go package
...
Using the explicit filename for Windows is necessary to
satisfy `Expand-Archive`'s requirement on '.zip' extension.
Signed-off-by: Javier Romero <root@jromero.codes >
2022-07-28 19:01:53 -05:00
9eecd2d0d7
Minor fix
2022-07-01 09:25:30 +02:00
0fd92001e9
Rework cache handling
2022-06-28 14:17:12 +02:00
6036aa2424
Add cache error handling
2022-06-14 10:57:37 +02:00
b22fbbc292
Implementation of caching functionality for setup-go action ( #228 )
2022-05-25 12:07:29 +02:00
265edc1beb
Add go-version-file option ( #62 )
2022-05-12 10:04:39 +02:00
193b404f8a
Successfully set up ( #231 )
2022-05-03 08:43:40 -04:00
ad70bef2ef
Fix condition for old go versions
2022-04-17 17:36:51 +02:00
4a4352b330
Add 'go-version' Output ( #85 )
...
* Add go-version to action outputs
This provides the semver version of Go that has been installed. This is useful
if only a major or minor version has been provided as the input go-version
value.
* Convert version extraction to a function
Simplify how the version is extracted and add a simple test at the same
time.
Co-authored-by: Peter Mescalchin <peter@magnetikonline.com >
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com >
Co-authored-by: Peter Mescalchin <peter@magnetikonline.com >
Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com >
2022-04-08 12:23:10 -04:00
0b4fbc55f6
await io.mkdirP
2022-03-28 10:54:44 +01:00
802876f7c7
Fix formatting
2022-03-14 12:23:03 -04:00
2a34c33bd7
Export GOROOT
for versions < 1.9
2022-03-14 12:21:30 -04:00
83124a14b6
Do not export GOROOT
...
This has not been necessary since [Go 1.9](https://go.dev/doc/go1.9#goroot ) at
least (although clunky to do so then) but definitely not since
[Go 1.10](https://go.dev/doc/go1.10#goroot ).
This is cargo culting code that is more than 2 years out of date and runs into
issues when multiple go versions are used in an action run.
Signed-off-by: Manuel Mendez <mmendez534@gmail.com >
2022-03-11 08:26:16 -05:00
f6164bd8c8
Remove stable input and fix SemVer notation ( #195 )
2022-02-28 10:16:32 +03:00
bfdd3570ce
Implement "check-latest" flag to check if pre-cached version is latest one ( #186 )
2022-02-09 14:59:04 +03:00