Skip to content

Conversation

@asteurer
Copy link
Contributor

This change affects the following scenarios:

  • The mod-name flag is used (user wants to create a library), which results in the following
    • The go.mod file is omitted
    • The wit_exports.go file is moved into it's own package
    • To make use of the wit_exports, the user will need to include an import like this:
    import  _ "{mod_name}/wit_exports"
  • The mod-name flag is not used (user wants to create a standalone binary), which results in the following
    • A go.mod file is created
    • The wit_exports.go file is the "main" package, and the requisite main function is included.

Also, we no longer need the pkg-name flag!

@dicej

@dicej dicej enabled auto-merge January 14, 2026 21:06
@dicej dicej added this pull request to the merge queue Jan 14, 2026
Merged via the queue into bytecodealliance:main with commit da3f633 Jan 14, 2026
27 checks passed
@asteurer asteurer deleted the pkg branch January 14, 2026 21:28
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