mirror of https://github.com/hashicorp/packer
When packer init is invoked with a --force argument, but no --update, we clamp the version to install based on the last one locally installed. Doing this may however cause the constraint to always be false if the latest available version of a plugin is a pre-release, as none of the upstream constraints will match that. Therefore this commit changes how the constraint is derived from the local list of installations, so that only the last installation that matches the original constraint will be used, and not a pre-release.pull/12964/head
parent
7823a40a25
commit
2d8aa69779
Loading…
Reference in new issue