Skip to content

add --export-pkg-name to Go options#1572

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
dicej:go-export-pkg-name-option
Mar 30, 2026
Merged

add --export-pkg-name to Go options#1572
alexcrichton merged 1 commit intobytecodealliance:mainfrom
dicej:go-export-pkg-name-option

Conversation

@dicej
Copy link
Copy Markdown
Collaborator

@dicej dicej commented Mar 27, 2026

This allows the user to specify different packages for imports vs. exports, which can be useful when building libraries.

This also includes some minor code and doc cleanups.

This allows the user to specify different packages for imports vs. exports,
which can be useful when building libraries.

This also includes some minor code and doc cleanups.
dicej added a commit to dicej/componentize-go that referenced this pull request 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](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 added a commit to dicej/componentize-go that referenced this pull request 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](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 added a commit to dicej/componentize-go that referenced this pull request 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](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 added a commit to dicej/componentize-go that referenced this pull request 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](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.
@alexcrichton alexcrichton added this pull request to the merge queue Mar 30, 2026
Merged via the queue into bytecodealliance:main with commit 4efab38 Mar 30, 2026
28 checks passed
dicej added a commit to dicej/componentize-go that referenced this pull request Mar 30, 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](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.
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