Commit Graph

307 Commits (ebf50616f31f65a95ac9d1309c3440d3ebca55f0)
 

Author SHA1 Message Date
Matthew Hughes ebf50616f3 !drop build for test 1 year ago
Matthew Hughes 6a7d247afe fixup! Avoid Toolchain download before cache download 1 year ago
Matthew Hughes a02bf28b8a !drop build so I can test the action 1 year ago
Matthew Hughes c183053c42 fixup! Avoid Toolchain download before cache download 1 year ago
Matthew Hughes 0815ecbd83 Avoid Toolchain download before cache download
`go version` is run before downloading the cache, but if this is run
with a version of `go` that triggers a Toolchain download[1], e.g. if
the installed Go is 1.20.0 but `go.mod` has a toolchain directive
`go1.20.1` then a toolchain is downloaded to e.g.
`$GOMODCACHE/golang.org/toolchain@v0.0.1-go1.21.1.linux-amd64`, if this
file already exists in the cache (e.g. this is the second run of this
action we not cache invalidation) then the cache download will try and
overwrite these files resulting in noisy errors like:

    /usr/bin/tar: ../../../go/pkg/mod/golang.org/toolchain@v0.0.1-go1.21.6.linux-amd64/lib/time/mkzip.go: Cannot open: File exists

Instead, force `go` to use the local toolchain (i.e. the one the one
that shipped with the go command being run) via setting the
`GOTOOLCHAIN` environment variable[1]:

> When GOTOOLCHAIN is set to local, the go command always runs the
bundled Go toolchain.

This addresses https://github.com/actions/setup-go/issues/424

[1] https://go.dev/doc/toolchain#select
1 year ago
Marko Zivic 883490dfd0
Merge pull request #417 from artemgavrilov/main
Improve documentation regarding dependencies caching
2 years ago
Artem Gavrilov d45ebba0ce
Rephrase sentence
Co-authored-by: Ivan <98037481+IvanZosimov@users.noreply.github.com>
2 years ago
Artem Gavrilov 317c6617fa
Replace `wildcards` term with `globs`. 2 years ago
Artem Gavrilov f90673ad64
Merge pull request #1 from artemgavrilov/caching-docs-improvement
Improve documentation regarding dependencies caching
2 years ago
Artem Gavrilov 8018234347
Improve documentation regarding dependencies cachin 2 years ago
Marko Zivic d085b4fe57
Merge pull request #411 from galargh/fix/windows-hostedtoolcache
Fix hosted tool cache usage on windows
2 years ago
galargh 48ac8fd236 chore: format 2 years ago
Piotr Galar 89a192af9d fix: sync .complete marker when caching tools on windows 2 years ago
Piotr Galar aabcd82874
ci: add hostedtoolcache validation on windows 2 years ago
Sergey Dolin 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
2 years ago
Sergey Dolin 27eec5b982
Merge pull request #396 from actions/dependabot/npm_and_yarn/semver-6.3.1
Bump semver from 6.3.0 to 6.3.1
2 years ago
Sergey Dolin ecfc77a56f
Merge pull request #397 from actions/dependabot/npm_and_yarn/word-wrap-1.2.4
Bump word-wrap from 1.2.3 to 1.2.4
2 years ago
dependabot[bot] 1b80a11e05
Bump word-wrap from 1.2.3 to 1.2.4
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Dusan Trickovic b1c343484c Fix licensing for Semver 6.3.1 2 years ago
Dusan Trickovic 0bb97b1c5c Rebuild after updating Semver 2 years ago
dependabot[bot] 4220624b80
Bump semver from 6.3.0 to 6.3.1
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot] db8764c1e2
Bump tough-cookie and @azure/ms-rest-js (#392) 2 years ago
Sergey Dolin 08b314a573
Merge pull request #383 from akv-platform/issue-368
Add imageOS to primaryKey
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 992f068900
Add note about YAML parsing versions (#382) 2 years ago
yukyan 0e6baa5a93
Added a description that go-version should be specified as a string type (#367) 2 years ago
Michael Kelly a6259e5d50
Update action.yml (#379)
Typo in the description.
2 years ago
Marko Zivic 49bc3307c5
Merge pull request #378 from akv-platform/remove-implicit-dependencies
Remove implicit dependencies
2 years ago
Nikolai Laevskii f350b3e5db Move eslint-plugin-node to dev dependencies 2 years ago
Nikolai Laevskii 06a11aedec Install eslint-plugin-node 2 years ago
github-actions[bot] 56b159bb76 Update configuration files 2 years ago
Nikolai Laevskii fac708d667
Bump @actions/cache dependency to v3.2.1 (#374) 2 years ago
Dmitry Shibanov dd84a9531a
Update xml2js (#370) 2 years ago
Ivan 41c2024c46
Fix glob bug in package.json scripts section (#359) 2 years ago
Sergey Dolin 8dbf352f06
update README fo v4 (#354) 2 years ago
github-actions[bot] 4d34df0c23
Update configuration files (#348)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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
Dmitry Shibanov b27d76912e
fix lockfileVersion (#349) 2 years ago
Sergey Dolin c51a720768
Enable caching by default with default input (#332) 2 years ago
Marko Zivic 6b848af622
Merge pull request #343 from akv-platform/reusable-workflow
Turn on automatic update of ESLint and Prettier configuration files
2 years ago
IvanZosimov 12741cc209 Format update-config-files.yml 2 years ago
IvanZosimov 7a77a6aab6 Merge branch 'main' into reusable-workflow 2 years ago
IvanZosimov 42a0cc8e14 Add update-config-files.yml 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
Marko Zivic a3d889c34c
Merge pull request #323 from e-korolevskii/use-actual-version-in-cache
Use actual version in cache
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