Skip to content

Warn about ^0.x dependencies#669

Merged
mosteo merged 9 commits intoalire-project:masterfrom
mosteo:fix/caret
Feb 2, 2021
Merged

Warn about ^0.x dependencies#669
mosteo merged 9 commits intoalire-project:masterfrom
mosteo:fix/caret

Conversation

@mosteo
Copy link
Member

@mosteo mosteo commented Jan 28, 2021

This is a suspicious use, as most likely ~0.x is intended.

This PR documents this particular in the catalog, but also warns when such a dependency is added, and at publishing time. The warning can be disabled with the new option warning.caret.

Fixes #639.

@mosteo
Copy link
Member Author

mosteo commented Jan 28, 2021

Circularity horror again. Sigh.

This warning is shown at most once per run, and is an optional blocker during
`alr with` and `alr publish`.

A new `Alire.Warnings` package allows simple emission of warnings only once.
@mosteo mosteo marked this pull request as ready for review January 29, 2021 09:59
@mosteo
Copy link
Member Author

mosteo commented Jan 29, 2021

This one would be ready now, if you don't mind the IDs not being an enum.

mosteo and others added 2 commits February 1, 2021 10:54
Merge remote-tracking branch 'alire/master' into fix/caret
@mosteo mosteo merged commit 70add12 into alire-project:master Feb 2, 2021
@mosteo mosteo deleted the fix/caret branch February 2, 2021 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify semver caret and tilde operator semantics

2 participants