Fix "error: GitHub API: more that one release selected" in create-exe
#5320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #5281 shows how, when running
wasmer create-exe
, an error occurs while downloadinglibwasmer
from the latest release. It is due to the support of engines we recently introduced, which at the time did not allow their coexistence with "regular" engines (thesys
ones), making separate releases (-wasmi
,-wamr
,-v8
) necessary. We plan, in the short term, to have a release that allows the simultaneous existence of said engines, so the separate release won't be mandatory anymore - we will have to figure out which engines to ship by default and/or a mechanism to install the necessary libraries (e.g.libiwasm
,libwee8
..) when needed.In the meantime, this patch fixes the current behaviour by filtering out the
-wasmi
,-wamr
and-v8
releases upon download oflibwasmer
.