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

0.13.1 -D parse error: breaking change? #280

Closed
kellerkindt opened this issue Oct 27, 2020 · 7 comments
Closed

0.13.1 -D parse error: breaking change? #280

kellerkindt opened this issue Oct 27, 2020 · 7 comments

Comments

@kellerkindt
Copy link

kellerkindt commented Oct 27, 2020

grafik

grafik

See, this is what happens if you do not pin your dependency versions ... (talking to myself)

@kellerkindt
Copy link
Author

kellerkindt commented Oct 27, 2020

PR #278:

Changing --deny-warnings to take an argument is a breaking change that might catch people off guard. [...]

grafik

Well, I was caught off guard...

@tarcieri
Copy link
Member

I actually changed --deny-warnings specifically to continue to work as-is sans argument in #278 to make this change slightly less disruptive. That now prints a deprecation warning and tells you to use --deny warnings.

For -D, I wanted to better align with RUSTFLAGS and accept similar arguments. -D is now short for the new --deny option and takes an argument. The same -D warnings you'd use with RUSTFLAGS now works with cargo audit.

Pardon our dust.

@tarcieri tarcieri pinned this issue Oct 27, 2020
@kellerkindt
Copy link
Author

Well, all in all the change is reasonable.

@bmc-msft
Copy link

bmc-msft commented Nov 2, 2020

It would be extremely valuable to declare how you intend to manage versions. This breaking change came in 0.13.1.

One of many common practices that would prevent surprises like this in the future would be to use semantic versioning.

@tarcieri
Copy link
Member

tarcieri commented Nov 2, 2020

@bmc-msft this project uses semantic versioning, even if it isn't declared as such.

v0.13.0 was yanked.

As I just mentioned above, #278 introduced in v0.13.1 to make the changes from #206, which actually added an argument to -D/--deny-warnings, slightly less disruptive. The changes from #206 were originally a part of v0.13.0.

@bmc-msft
Copy link

bmc-msft commented Nov 2, 2020

It's useful that you're intending to use semantic versioning.

I saw the release of 0.13.0 when it was first published, looked through the changelog and code and did not see anything that would break our usage.

The follow-on release of 0.13.1 that introduced a breaking change was what caught me off-guard.

@tarcieri
Copy link
Member

tarcieri commented Nov 2, 2020

#206 was a breaking change. It looks like it was not properly noted in the changelog.

@tarcieri tarcieri unpinned this issue Jan 11, 2021
tarcieri pushed a commit that referenced this issue May 7, 2021
Bumps [semver-parser](https://github.com/steveklabnik/semver-parser) from 0.10.0 to 0.10.2.
- [Release notes](https://github.com/steveklabnik/semver-parser/releases)
- [Commits](steveklabnik/semver-parser@v0.10.0...v0.10.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
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

No branches or pull requests

3 participants