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

Auto fails to keep the latest prerelease (next) version of independant package after new commit #2371

Open
tl-NASEEBULLAH-AHMADI opened this issue Jun 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@tl-NASEEBULLAH-AHMADI
Copy link

Describe the bug
I'm using Auto with PNPM workspace. I use the default next branch for my prerelease(s).

Suppose I have 3 independent packages:

  1. @pkg/foo:0.1.0
  2. @pkg/bar:0.1.0 - Has dependency "@pkg/foo": "workspace:*"
  3. @pkg/baz:0.1.0- Has dependency "@pkg/foo": "workspace:*"

With my next prerelease with patch bump. As part of my first commit in my PR (next), I do a change to all packages. The bump is done accordingly:

  1. @pkg/foo:0.1.1-next.0
  2. @pkg/bar:0.1.1-next.0
  3. @pkg/baz:0.1.1-next.0

However, in my 2nd commit in the same PR, if I do another commit that only changes @pkg/baz. The bump only happens to that package (i.e. @pkg/baz:0.1.1-next.1), but it's dependant package @pkg/foo will revert back to its original version (i.e. @pkg/foo:0.1.0). Therefore, when I try to install pnpm add @pkg/baz:0.1.0@next, I get the following error:

 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for @pkg/foo:0.1.0

This error happened while installing the dependencies of @pkg/baz:0.1.1-next.1

The latest release of @pkg/foo is "0.1.1-next.0".

The expected outcome should be to use the latest pre-release next version for its dependent packages as well.

@tl-NASEEBULLAH-AHMADI tl-NASEEBULLAH-AHMADI added the bug Something isn't working label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant