Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasmvm version awk should pull the last field #143

Merged
merged 2 commits into from
Jun 27, 2023
Merged

Conversation

misko9
Copy link
Contributor

@misko9 misko9 commented Jun 25, 2023

Grabs the last field of wasmvm version grepped instead of the 2nd. This ensures a replace in go.mod will pull the correct version.

I noticed the latest osmosis builds do not work because wasmvm v1.1.1 is downloaded instead of v1.1.2. Here is the error:
Error: libwasmversion mismatch. got: 1.1.1; expected: v1.1.2

You can see the replace here along with the security advisory. For indirect dependencies, the advisory recommends using a replace, so this commit could be required for more chains following that guidance too:
https://github.com/osmosis-labs/osmosis/blob/v15.1.2/go.mod#L314

ensures a replace in go.mod will pull the correct version.
@misko9 misko9 requested a review from agouin June 25, 2023 22:13
Copy link
Member

@agouin agouin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

@misko9 misko9 merged commit ff4a051 into main Jun 27, 2023
1 check passed
@misko9 misko9 deleted the steve/wasmvm-version-fix branch June 27, 2023 03:18
@DavidNix
Copy link
Contributor

Great fix, @misko9! And, interesting they needed the replace because of transitive dependencies.

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.

None yet

3 participants