Commit Graph

94 Commits (d6ad0fa4fe6ac5bfeab8de09f942f2fbc919e1fb)

Author SHA1 Message Date
Sergey Dolin d6ad0fa4fe refactoring 2 years ago
Sergey Dolin 8998c6804e refactor conditions 2 years ago
Sergey Dolin 00f551b2d1 rename lnkSrc 2 years ago
Sergey Dolin 90cd2f950f AzDev environment 2 years ago
Sergey Dolin 60dde965e0 test hosted version of go 2 years ago
Sergey Dolin 96a955403c limit to github hosted runners 2 years ago
Sergey Dolin 1c500a4414 Improve readability 2 years ago
Sergey Dolin 93ae31f0a4 Add unit test 2 years ago
Sergey Dolin 930ff22596 Fix Install on Windows is very slow 2 years ago
Sergey Dolin 4e0b6c77c6 Limit to Linux only 2 years ago
Sergey Dolin a4d10f0ea4 Add imageOS to primaryKey
https://github.com/actions/setup-go/issues/368
2 years ago
Dmitry Shibanov fdc0d672a1
Add Go bin if go-version input is empty (#351) 2 years ago
Dmitry Shibanov ebfdf6ac95
add warning if go-version is empty (#350) 2 years ago
Sergey Dolin c51a720768
Enable caching by default with default input (#332) 2 years ago
Ivan 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
2 years ago
Evgenii Korolevskii b8eec33327 Merge branch 'main' into use-actual-version-in-cache 2 years ago
Serghei Iakovlev 807559307d
Use const declarations for variables that are never reassigned (#322) 2 years ago
Evgenii Korolevskii b27afcd9c2 format 2 years ago
Evgenii Korolevskii 65f50caf42 use actual version in key 2 years ago
Evgenii Korolevskii 89d7939d38 use real version instead of spec 2 years ago
Evgenii Korolevskii 2e7414f276 try get path 2 years ago
Evgenii Korolevskii de201a09c0 log version-spec 2 years ago
Evgenii Korolevskii 17106403fa
Allow to use only GOCACHE for cache (#305) 2 years ago
Jongwoo Han bb5ff97ab9
refactor: Use early return pattern to avoid nested conditions (#302) 2 years ago
Dmitry Shibanov 6edd4406fa
fix log for stable aliases (#303) 2 years ago
Milos Pantic 38dbe75f81
Add stable and oldstable aliases (#300) 2 years ago
Marko Zivic e983b65a44
Merge pull request #283 from koba1t/add_support_gowork_for_go-version-file
add support go.work file for go-version-file
2 years ago
Dmitry Shibanov 27b43e1b0d
Pass the token input through on GHES (#277) 3 years ago
koba1t 7678c83214
add support gowork for go-version-file 3 years ago
n33pm c4a742cab1
fix(): cache resolve version input (#267) 3 years ago
Evgenii Korolevskii c4e169859f prettier format 3 years ago
Evgenii Korolevskii db58e98a43 format 3 years ago
Evgenii Korolevskii 5547b9ed8d fix(cache): Not throw err if no cache folders 3 years ago
Evgenii Korolevskii be45b2722d build 3 years ago
Milos Pantic 268d8c0ca0
Add support for arm32 go arch (#253) 3 years ago
Javier Romero 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>
3 years ago
Vladimir Safonkin 9eecd2d0d7 Minor fix 3 years ago
Vladimir Safonkin 0fd92001e9 Rework cache handling 3 years ago
Vladimir Safonkin 6036aa2424 Add cache error handling 3 years ago
IvanZosimov b22fbbc292
Implementation of caching functionality for setup-go action (#228) 3 years ago
So Jomura 265edc1beb
Add go-version-file option (#62) 3 years ago
Brian Cristante 193b404f8a
Successfully set up (#231) 3 years ago
Vladimir Safonkin ad70bef2ef Fix condition for old go versions 3 years ago
Nick 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>
3 years ago
Fraser Waters 0b4fbc55f6 await io.mkdirP 3 years ago
Josh Gross 802876f7c7
Fix formatting 3 years ago
Josh Gross 2a34c33bd7
Export `GOROOT` for versions < 1.9 3 years ago
Manuel Mendez 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>
3 years ago
Dmitry Shibanov f6164bd8c8
Remove stable input and fix SemVer notation (#195) 3 years ago
Dmitry Shibanov bfdd3570ce
Implement "check-latest" flag to check if pre-cached version is latest one (#186) 3 years ago