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

packer: always reject plugin pre-releases #12829

Conversation

lbajolet-hashicorp
Copy link
Contributor

When a pre-release version of a plugin is locally installed, it may or may not be loaded depending on the constraints expressed in the template being executed.

If the template contains constraints for loading the plugin, it would be ignored, while if that wasn't present, it would be loaded.

This is inconsistent, and deserves to be addressed, which is what this commit does.

With this change, plugin pre-releases are now always rejected with a message in the verbose logs, so only releases are considered, whether or not the template being processed contains a required_plugins constraint or not.

Note: based on top of #12787 for readability

When a pre-release version of a plugin is locally installed, it may or
may not be loaded depending on the constraints expressed in the
template being executed.

If the template contains constraints for loading the plugin, it would
be ignored, while if that wasn't present, it would be loaded.

This is inconsistent, and deserves to be addressed, which is what
this commit does.

With this change, plugin pre-releases are now always rejected with a
message in the verbose logs, so only releases are considered, whether or
not the template being processed contains a `required_plugins`
constraint or not.
@lbajolet-hashicorp
Copy link
Contributor Author

Note: closing this PR since we're going to work on including #12828 for inclusion in Packer v1.11.0 later this year.

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant