Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kate-goldenring
Copy link
Contributor

Spin plugins state which versions of Spin they are compatible with in their plugin manifest. Currently, Spin checks if the plugin is compatible before allowing it to be installed or executed. If incompatible, the operation fails. This allows overriding that failure with an --override-compatibility-check flag. When specified during Spin plugin installs, upgrades and executions, the action will continue even if the plugin is incompatible with the current version of Spin.

More context on the decision to add this override can be found in this thread: #735 (comment)

Copy link
Collaborator

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

Sorry for letting this slip through the cracks. I had a few suggestions, but the only one I feel strongly about is printing the override message to stderr instead of stdout, and even that isn't a blocker. Otherwise it looks great - thank you!

"Could not parse manifest compatibility version {} as valid semver",
&supported_on,
)
format!("Could not parse manifest compatibility version {supported_on} as valid semver")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion, though probably an irrelevant one... if override_compatibility_check is set, a parse error should not be fatal (the user has already said they don't care about versions). That said, it's hard to imagine how any plugin with a broken version spec gets this far!

@kate-goldenring kate-goldenring force-pushed the plugins-override-compat-check branch from bdb2bdb to 5c44af7 Compare October 3, 2022 15:20
Copy link
Collaborator

@itowlson itowlson left a comment

Choose a reason for hiding this comment

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

LGTM!

@kate-goldenring kate-goldenring merged commit 331fb4e into spinframework:main Oct 4, 2022
@kate-goldenring kate-goldenring deleted the plugins-override-compat-check branch October 4, 2022 18:19
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.

3 participants