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

Improve error when local package has inconsistent dependency constraints #13111

Conversation

zodern
Copy link
Member

@zodern zodern commented Apr 26, 2024

While updating a package for Meteor 3, I started seeing this error:

Error: inconsistent dependency constraint across unibuilds?

It was caused by the package having different constraints on montiapm:agent:

  api.use('montiapm:agent@2.44.2||3.0.0-beta.4');
  api.imply('montiapm:agent@2.44.2');

The error was not very helpful in figuring this out. The code is able to show a much better message, but it was disabled when running for local packages. This PR re-enables it:

=> Errors while initializing project:         
                                              
While reading package from `...`:
error: The version constraint for a dependency must be the same at every place it is mentioned in a
package. 'montiapm:agent' is constrained both as 2.44.2||3.0.0-beta.4 and 2.44.2. Change them to match.

Copy link

netlify bot commented Apr 26, 2024

Deploy Preview for v3-migration-docs canceled.

Name Link
🔨 Latest commit 89840d9
🔍 Latest deploy log https://app.netlify.com/sites/v3-migration-docs/deploys/664ca81c9c57900008a7747c

Copy link

netlify bot commented Apr 26, 2024

Deploy Preview for v3-meteor-api-docs canceled.

Name Link
🔨 Latest commit 89840d9
🔍 Latest deploy log https://app.netlify.com/sites/v3-meteor-api-docs/deploys/664ca81cabaad100083f252c

@leonardoventurini leonardoventurini merged commit da7860c into release-3.0 May 21, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants