sandstorm-io / vagrant-spk

Packaging tool for Sandstorm, a self-hosting platform for web apps!
Apache License 2.0
55 stars 29 forks source link

Use the latest golang when building a new package #340

Closed ocdtrekkie closed 1 year ago

ocdtrekkie commented 1 year ago

This change should end the need for regular updates to the Go stack: We will grab the latest version of Go, and store the version with the .sandstorm folder so we grab the same one on successive builds.

Note that I didn't change (or bother to check what it was) the working directory, and ended up using absolute paths, and I couldn't run "go" from PATH on line 22, so I continued that behavior. Ian, if you can make this PR more succinct or better, I am good with that, but this seems to work.

(Note, I am about to force-push to fix a tabs vs. spaces crime.)

ocdtrekkie commented 1 year ago

I tested it installed 1.19.2, checked my go-version file did a destroy, and ran it again, and it still installed 1.19.2, which it should do anyways. Then I destroyed again, changed go-version to 1.18.7 and ran it again, and it installed 1.18.7. So yeah, behavior seems to be correct.