Skip to content

automatically download appropriate Go version when necessary#37

Merged
asteurer merged 3 commits intobytecodealliance:mainfrom
dicej:auto-download-go
Apr 2, 2026
Merged

automatically download appropriate Go version when necessary#37
asteurer merged 3 commits intobytecodealliance:mainfrom
dicej:auto-download-go

Conversation

@dicej
Copy link
Copy Markdown
Contributor

@dicej dicej commented Mar 27, 2026

There are three scenarios where we might need to do this:

  • Go is not installed at all
  • Go is installed, but the version is too old
  • Go is installed and the version is new enough, but the target world uses async features and the installed Go lacks the required patch

In any of those cases, we'll download a suitable version, install it in the current user's cache directory, and run it from there.

This also adds a new --export-pkg-name parameter corresponding to bytecodealliance/wit-bindgen#1572.

Note that this builds on #36 and should not be merged until after that is merged.

@dicej dicej force-pushed the auto-download-go branch 3 times, most recently from ddea8ad to 303f6f3 Compare March 30, 2026 20:05
@dicej dicej force-pushed the auto-download-go branch from 77a96a3 to 5013c8c Compare April 1, 2026 14:23
dicej added 2 commits April 1, 2026 16:19
There are three scenarios where we might need to do this:

- Go is not installed at all
- Go is installed, but the version is too old
- Go is installed and the version is new enough, but the target world uses async features and the installed Go lacks [the required patch](golang/go#76775)

In any of those cases, we'll download a suitable version, install it in the
current user's cache directory, and run it from there.

This also adds a new `--export-pkg-name` parameter corresponding to
bytecodealliance/wit-bindgen#1572.
@dicej dicej force-pushed the auto-download-go branch from 5013c8c to 0d3c360 Compare April 1, 2026 22:19
@asteurer asteurer merged commit 8d14951 into bytecodealliance:main Apr 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants