andrewkroh / gvm

Go Version Manager (written in Go for cross-platform usability)
Apache License 2.0
195 stars 24 forks source link

enable gvm installer through a shell script #67

Open v1v opened 1 year ago

v1v commented 1 year ago

Help with using gvm with a shell script installer,. This will help with removing all the logic to install gvm in the CI.

Caused by https://github.com/elastic/apm-agent-go/pull/1537/files#r1383052541

breml commented 1 year ago

Can you elaborate, why and how are you using gvm in CI?

v1v commented 1 year ago

Can you elaborate, why and how are you using gvm in CI?

Sure thing, I use gvm to install any specific Golang version dynamically, for such either gvm is installed in the CI runners previously or I update the installed gvm if needed.

https://github.com/elastic/apm-agent-go/pull/1537/files is one example for moving from the gimme approach to gvm.

https://github.com/elastic/beats/blob/475eaf5784b46f9a986e86617b21400a44dd90d0/.ci/scripts/get-vendor-dependencies.sh#L10 is another example for using gvm for any given version.