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

[PR #7339/39895a6d backport][stable-7] pnpm: version should not be latest when state is latest #7347

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Oct 4, 2023

This is a backport of PR #7339 as merged into main (39895a6).

If version is forcefully set at latest when state is latest, the package will always be changed, as there is no version "latest" will ever be detected. It is better to keep it None.

SUMMARY

Fixes the idempotency problem when state is latest, Previously, version was set at latest when state was latest, so the package was updated every time. This should be fixed now.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport bug This issue/PR relates to a bug integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Oct 4, 2023
@felixfontein felixfontein reopened this Oct 4, 2023
@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Oct 4, 2023
* (fix) don't set version at latest at state: latest

If version is forcefully set at latest when state is latest, the package
will always be changed, as there is no version "latest" will ever be
detected. It is better to keep it None.

* (fix) fixed tests to reflect recent changes

* Apply suggestions from code review

Co-authored-by: Felix Fontein <[email protected]>

* (feat) added changelog fragment for pull #7339

* (fix) apply correct punctuation to changelog

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 39895a6)
@felixfontein felixfontein force-pushed the patchback/backports/stable-7/39895a6d38220d3a8ff959c6770acff956fbbcfd/pr-7339 branch from e6b87f5 to 6418285 Compare October 4, 2023 09:54
@felixfontein felixfontein merged commit b279694 into stable-7 Oct 4, 2023
140 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-7/39895a6d38220d3a8ff959c6770acff956fbbcfd/pr-7339 branch October 4, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug integration tests/integration module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants