-
-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Labels
A-cliArea: engine around the lintsArea: engine around the lintsC-enhancementCategory: raise the bar on expectationsCategory: raise the bar on expectationsE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mentorCall for participation: Mentorship is available for this issue.Call for participation: Mentorship is available for this issue.
Description
Steps to reproduce the bug with the above code
If a version of a crate has version metadata, that metadata has to be provided to --baseline-version, or it will error. For example, this fails:
> DOCS_RS=1 cargo semver-checks --baseline-version 0.4.7
Building sdl3-sys v0.4.9+SDL3-3.2.10 (current)
Built [ 1.106s] (current)
Parsing sdl3-sys v0.4.9+SDL3-3.2.10 (current)
Parsed [ 0.032s] (current)
error: Version sdl3-sys of crate 0.4.7 not found in registry
(also, the crate name and version are swapped in the error message)
But this succeeds:
> DOCS_RS=1 cargo semver-checks --baseline-version 0.4.7+SDL3-3.2.10
Building sdl3-sys v0.4.9+SDL3-3.2.10 (current)
Built [ 1.431s] (current)
Parsing sdl3-sys v0.4.9+SDL3-3.2.10 (current)
Parsed [ 0.033s] (current)
Parsing sdl3-sys v0.4.7+SDL3-3.2.10 (baseline, cached)
Parsed [ 0.040s] (baseline)
Checking sdl3-sys v0.4.7+SDL3-3.2.10 -> v0.4.9+SDL3-3.2.10 (minor change)
Checked [ 0.148s] 128 checks: 128 pass, 36 skip
Summary no semver update required
Finished [ 2.160s] sdl3-sys
Actual Behaviour
Version metadata is required
Expected Behaviour
Version metadata is ignored by cargo, so cargo-semver-checks shouldn't require it.
Generated System Information
System information:
Software version
cargo-semver-checks 0.41.0 (793f25c)
Operating system
- OS: macOS 15.4.1 Sequoia
- Kernel: 24.4.0
Command-line
/Users/maia/.cargo/bin/cargo-semver-checks semver-checks --bugreportcargo version
> cargo -V
cargo 1.88.0-nightly (d811228b1 2025-04-15)
Compile time information
- Profile: release
- Target triple: aarch64-apple-darwin
- Family: unix
- OS: macos
- Architecture: aarch64
- Pointer width: 64
- Endian: little
- CPU features: aes,crc,dit,dotprod,dpb,dpb2,fcma,fhm,flagm,fp16,frintts,jsconv,lor,lse,neon,paca,pacg,pan,pmuv3,ras,rcpc,rcpc2,rdm,sb,sha2,sha3,ssbs,vh
- Host: aarch64-apple-darwin
Build Configuration
No response
Additional Context
No response
Metadata
Metadata
Assignees
Labels
A-cliArea: engine around the lintsArea: engine around the lintsC-enhancementCategory: raise the bar on expectationsCategory: raise the bar on expectationsE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mentorCall for participation: Mentorship is available for this issue.Call for participation: Mentorship is available for this issue.