Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Pass through any 0.x version of wit-bindgen great than 0.4 #32

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

rylev
Copy link
Contributor

@rylev rylev commented Oct 19, 2023

Instead of locking on a single version, I think we can just let anything through as long as its wit-bindgen 0.5 or newer based. This should prevent us from needing to update spin-componentize with each new wit-bindgen release. I'm still being somewhat conservative and erroring on any major version 1 and above. We can revisit that when the time comes.

Signed-off-by: Ryan Levick <ryan.levick@fermyon.com>
Some(v) if v.starts_with("0.8.") => return Ok(Self::V0_8),
Some(other) => return Ok(Self::Other(other.to_owned())),
None => {}
if let Some(v) = bindgen_version {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could consider using https://crates.io/crates/semver for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems a bit overkill for now, but if we run into issues I'll switch over.

@rylev rylev merged commit 00820a4 into main Oct 19, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants