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

Backport of plugin-getter: don't rely only on version for list into release/1.10.x #12740

Conversation

hc-github-team-packer
Copy link
Collaborator

Backport

This PR is auto-generated from #12731 to be assessed for backporting due to the inclusion of the label backport/1.10.x.

The below text is copied from the body of the original PR.


The plugins installed command list installed plugins, and prints out all their paths and versions.

The results are listed in a list of unique versions, in ascending order.

When listing plugins outside of a specific identifier however, because of the insertion in the list works, we only consider the version number, and ignore all subsequent insertions with the same version.

This causes a problem when we have multiple plugins installed with the same version, as only the first one that is discovered (typically the one with lexicographical precedence) gets inserted, and the others are ignored.

To support such a use case, we change the insertion routine to not only support versions, but also paths when finding a spot to insert the installation into.


Overview of commits

@hc-github-team-packer hc-github-team-packer requested a review from a team as a code owner December 5, 2023 14:55
@hc-github-team-packer hc-github-team-packer force-pushed the backport/installed_plugins_list_fix/yearly-epic-fish branch from cc9e9a7 to 76cc0a6 Compare December 5, 2023 14:55
@hc-github-team-packer hc-github-team-packer force-pushed the backport/installed_plugins_list_fix/yearly-epic-fish branch from 68b7c7f to ee3a2ca Compare December 5, 2023 14:55
@hc-github-team-packer hc-github-team-packer merged commit a99c091 into release/1.10.x Dec 5, 2023
Copy link

github-actions bot commented Jan 5, 2024

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 Jan 5, 2024
@lbajolet-hashicorp lbajolet-hashicorp deleted the backport/installed_plugins_list_fix/yearly-epic-fish branch March 7, 2024 19:49
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.

2 participants