Commit Graph

54 Commits (44694675825211faa026b3c33043df3e48a5fa00)

Author SHA1 Message Date
Salman Chishti e093d1e9bb
Node 24 upgrade (#624)
* Node 24 upgrade

Doing an upgrade for node 24, node 24 is stricter with types so need to add a type for achitecture

* format

* package updates

* fix for check failures

* upgrade @types/node

* update package.json version

* check failure fix

* package-lock.json update

* update node24

* npm run format

* npm run format

* node update from the workflows

* Upgrade `actions/checkout` to v5 and `actions/setup-go` to v6 in README.md

---------

Co-authored-by: Aparna Jyothi <aparnajyothi-y@github.com>
Co-authored-by: Priya Gupta <147705955+priyagupta108@users.noreply.github.com>
7 days ago
Matthew Hughes 1d76b952eb
Improve toolchain handling (#460)
* Configure environment to avoid toolchain installs

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

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

This is how things are setup in the official Docker images (e.g.[2], see
also the discussion around that change[3]). The motivation behind this
is to:

* Reduce duplicate work: if the `toolchain` version in `go.mod` was
  greated than the `go` version, the version from the `go` directive
  would be installed, then Go would detect the `toolchain` version and
  additionally install that
* Avoid Unexpected behaviour: if you specify this action runs with some Go
  version (e.g. `1.21.0`) but your go.mod contains a `toolchain` or `go`
  directive for a newer version (e.g. `1.22.0`) then, without any other
  configuration/environment setup, any go commands will be run using go
  `1.22.0`

This will be a **breaking change** for some workflows. Given a `go.mod`
like:

    module proj

    go 1.22.0

Then running any `go` command, e.g. `go mod tidy`, in an environment
where only go versions before `1.22.0` were installed would previously
trigger a toolchain download of Go `1.22.0` and that version being used
to execute the command. With this change the above would error out with
something like:

> go: go.mod requires go >= 1.22.0 (running go 1.21.7;
GOTOOLCHAIN=local)

[1] https://go.dev/doc/toolchain#select
[2] dae3405a32/Dockerfile-linux.template (L163)
[3] https://github.com/docker-library/golang/issues/472

* Prefer installing version from `toolchain` directive

Prefer this over the version from the `go` directive. Per the docs[1]

> The toolchain line declares a suggested toolchain to use with the
module or workspace

It seems reasonable to use this, since running this action in a
directory containing a `go.mod` (or `go.work`) suggests the user is
wishing to work _with the module or workspace_.

Link: https://go.dev/doc/toolchain#config [1]
Issue: https://github.com/actions/setup-go/issues/457

* squash! Configure environment to avoid toolchain installs

Only modify env if `GOTOOLCHAIN` is not set

* squash! Prefer installing version from `toolchain` directive

Avoid installing from `toolchain` if `GOTOOLCHAIN` is `local`, also
better regex for matching toolchain directive
2 weeks ago
HarithaVattikuti 3d10edb4c2
Add new permission section (#533) 8 months ago
Tobias 3041bf56c9
feat: fallback to "raw" endpoint for manifest when rate limit is reached (#496)
* 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
10 months ago
Masahiro Furudate cdcb360436
Remove the description of the old go.mod specification (#458)
* Fix emoji rendering

* Fix quoting

* Remove the description of the old go.mod specification

* Remove the single quotes from `go-version-file`

* Fix README

* Add description about patch versions to README

* Revert "Remove the single quotes from `go-version-file`"

This reverts commit ca4321abee.
1 year ago
Andy Brody 99176a8f9a
Update README.md with V5 release notes (#459) 1 year ago
Rui Chen 6c1fd22b67
docs: bump `actions/setup-go` to v5 (#449)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2 years ago
Rui Chen 3d65fa57fc
feat: bump to use actions/checkout@v4
Signed-off-by: Rui Chen <rui@chenrui.dev>
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 8018234347
Improve documentation regarding dependencies cachin 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
Sergey Dolin 8dbf352f06
update README fo v4 (#354) 3 years ago
Sergey Dolin c51a720768
Enable caching by default with default input (#332) 3 years ago
Serghei Iakovlev 807559307d
Use const declarations for variables that are never reassigned (#322) 3 years ago
Seonghyeon Cho 9c64203f1d
Update basic validation badge 3 years ago
Milos Pantic 38dbe75f81
Add stable and oldstable aliases (#300) 3 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
3 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
Aleksey Zhukov e68a999c97
Fix broken `code of conduct` link (#260) 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
Vladimir Safonkin 3332358454 Add note about go building 3 years ago
Peter Mescalchin bf7ccf173e
Correct some small `README.md` formatting typos (#213) 3 years ago
Peter Mescalchin dcb4ec94ce
Bump GitHub actions, `README.md` cleanups (#202)
* Bump `actions/checkout@v3`

* Bump `actions/setup-node@v3`

* Bump `actions/upload-artifact@v3`

* Bump `actions/setup-go@v3` in `README.md` examples

* Removed mention of `stable` action argument from `README.md`

* Add "new style" workflow build buttons to `README.md`
3 years ago
Vladimir Safonkin 341b20ac36
Update usage examples on readme (#212)
* Fix action usage examples on readme

* Revert changes on package-lock

* Fix some checkout action version
4 years ago
Vladimir Safonkin acdbc5377c Remove stable input description from README 4 years ago
Vladimir Safonkin 3e6475c089 Update README to v3 4 years ago
Dmitry Shibanov bfdd3570ce
Implement "check-latest" flag to check if pre-cached version is latest one (#186) 4 years ago
Sergey Gaynetdinov 44e221478f
Replace 'ubuntu-16.04' -> 'ubuntu-latest' (#180) 4 years ago
Sergey-Murtazin 3e9d5483e6
Add semver note to documentation (#164) 4 years ago
Masahiro Furudate 02f7ea9f09
Fix yaml indent (#59) 4 years ago
Linus Gasser 6eb700292f
Reference latest setup-go 5 years ago
Bryan MacFarlane 8e98458ff1 updating matrix in readme 5 years ago
Maxim Lobanov d0c5defdf3
Switch manifest installation from "master" to "main" branch (#65)
* switch from master to main branch

* Update README.md
5 years ago
Bryan MacFarlane 0f551ac199
Update v2 tags in readme 5 years ago
Bryan MacFarlane e1c0a1665b
Update readme with v2 release 5 years ago
Bryan MacFarlane 768458bd0b pre-release version and test 6 years ago
Bryan MacFarlane 7af81a4a65 bit of cleanup 6 years ago
Bryan MacFarlane 4282769cc0 starting v2 and proxy support 6 years ago
Alif Rachmawadi 632d18fc92 Handle .x version syntax with latest release (#13)
* get latest release for .x syntax version

* added nock as dev dependency

* added test for .x syntax

* updated readme

* updated http client name

* use rest client for getting available versions

* more .x handling

* move nock to setup and teardown
6 years ago
Danny McCormick 5064ef8f2b
Use correct comment character 6 years ago
Danny McCormick 818723587f
Update to use go-version (#10) 6 years ago
Danny McCormick b98503c960
Add badge 6 years ago
Danny McCormick 419ae75c25
Quoting 6 years ago
Danny McCormick 58fca98f91
v1 (#8) 6 years ago
Bryan MacFarlane fb0fde1081
actions to steps 6 years ago
Danny McCormick a7fe89aa82
Update README.md 6 years ago