Skip to content

fix: add CI check for tag/version mismatch and bump versions - #83

Merged
asteurer merged 1 commit into
bytecodealliance:mainfrom
asteurer:fixes
Oct 23, 2026
Merged

asteurer merged 1 commit into
bytecodealliance:mainfrom
asteurer:fixes

Conversation

@asteurer

@asteurer asteurer commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

I failed to update the manifests when releasing 0.5.0. These are the fixes:

  • Bumping manifests to 0.5.1
  • Retracting 0.5.0
  • Adding a CI check to prevent mismatches between tags and committed versions in main.go and Cargo.toml.

Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
@asteurer

Copy link
Copy Markdown
Contributor Author

@adamreese I believe this will resolve #82. I'll cut a release after I merge this. Will you try again and let me know if you're still running into problems?

@asteurer
asteurer merged commit fdf50fa into bytecodealliance:main Oct 23, 2026
5 checks passed
@asteurer
asteurer deleted the fixes branch October 23, 2026 04:12
@adamreese

Copy link
Copy Markdown
Contributor

Didn't seem to fix the problem. Here's how I tested.

  1. Fresh state
rm -rf ~/Library/Caches/componentize-go
  1. Using v0.4.0 works as expected running example
~p/src/github.com/bytecodealliance/componentize-go/examples/wasip3 tags/v0.4.0
❯ make run
componentize-go --world wasip3-example bindings --format
go mod tidy
go: downloading go.bytecodealliance.org/pkg v0.2.2
componentize-go --world wasip3-example build
Note: /opt/homebrew/bin/go does not support async operation; will use downloaded version.
See https://github.com/golang/go/pull/76775 for details.
Downloading patched Go from https://github.com/dicej/go/releases/download/go1.25.5-wasi-on-idle-v2/go-darwin-arm64-bootstrap.tbz.
Extracting patched Go to /Users/areese/Library/Caches/componentize-go/v2.
Using /Users/areese/Library/Caches/componentize-go/v2/go-darwin-arm64-bootstrap/bin/go.
wasmtime serve -Sp3,cli -Wcomponent-model-async main.wasm
Serving HTTP on http://0.0.0.0:8080/
^C
  1. Build main and get error running example
~p/src/github.com/bytecodealliance/componentize-go/examples/wasip3 main
❯ make run                 
componentize-go --world wasip3-example bindings --format

go mod tidy
componentize-go --world wasip3-example build
Note: /opt/homebrew/bin/go does not support async operation; will use downloaded version.
See https://github.com/golang/go/pull/76775 for details.
Error: downloaded Go does not support async
make: *** [build-component] Error 1

@asteurer

Copy link
Copy Markdown
Contributor Author

@adamreese I'm not to be able to reproduce this on Mac or Linux:

MacOS:

$ pwd
/Users/asteurer/Repos/github.com/bytecodealliance/componentize-go/examples/wasip3
$ componentize-go --version
componentize-go 0.5.1
$ rm -rf ~/Library/Caches/componentize-go
$ make run
componentize-go --world wasip3-example bindings --format

go mod tidy
componentize-go --world wasip3-example build
Note: /opt/homebrew/bin/go does not support async operation; will use downloaded version.
See https://github.com/golang/go/pull/76775 for details.
Downloading patched Go from https://github.com/dicej/go/releases/download/go1.27.1-wasi-on-idle/go-darwin-arm64-bootstrap.tbz.
Extracting patched Go to /Users/asteurer/Library/Caches/componentize-go/v2.
Using /Users/asteurer/Library/Caches/componentize-go/v2/go-darwin-arm64-bootstrap/bin/go.
wasmtime serve -Sp3,cli -Wcomponent-model-async main.wasm
Serving HTTP on http://0.0.0.0:8080/

Fedora:

$ pwd
/home/asteurer/github.com/bytecodealliance/componentize-go/examples/wasip3
$ componentize-go --version
componentize-go 0.5.1
$ rm -rf ~/.cache/componentize-go 
$ make run
componentize-go --world wasip3-example bindings --format

go mod tidy
componentize-go --world wasip3-example build
Note: /usr/local/go/bin/go does not support async operation; will use downloaded version.
See https://github.com/golang/go/pull/76775 for details.
Downloading patched Go from https://github.com/dicej/go/releases/download/go1.27.1-wasi-on-idle/go-linux-amd64-bootstrap.tbz.
Extracting patched Go to /home/asteurer/.cache/componentize-go/v2.
Using /home/asteurer/.cache/componentize-go/v2/go-linux-amd64-bootstrap/bin/go.
wasmtime serve -Sp3,cli -Wcomponent-model-async main.wasm
Serving HTTP on http://0.0.0.0:8080/

@asteurer

Copy link
Copy Markdown
Contributor Author

@adamreese What version of Go are you running locally? This is mine:

$ go version
go version go1.27.3 darwin/arm64

If this fixes it, I can add a more helpful error message.

@adamreese

Copy link
Copy Markdown
Contributor

Weridness. Same go version

❯ go version 
go version go1.27.3 darwin/arm64

I only get the error if I don't clear the cache. In your test your clearing it before running v0.5.0. If you look at my output you can see it doesn't download a new version. It's still trying to use the version it downloaded from v0.4.0 which is go1.25.5. Still doesn't explain why I'm getting the error in CI though 🤷

@asteurer

asteurer commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Still doesn't explain why I'm getting the error in CI though

Looking at your PR, it's not updating CI to use Go v1.27.1+. I suspect this will fix the CI issue.

If you look at my output you can see it doesn't download a new version. It's still trying to use the version it downloaded from v0.4.0 which is go1.25.5.

Yeah, that's not ideal. I'll add some cache invalidation logic to make sure the wasi-on-idle version is up to date.

@asteurer

Copy link
Copy Markdown
Contributor Author

FYI: #84

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