You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a rustdoc-json file manually (I used RUSTDOCFLAGS="-Z unstable-options --document-private-items --document-hidden-items --output-format=json --cap-lints=allow" cargo +nightly doc --lib --no-deps)
Run cargo semver-checks while setting --current-rustdoc=target/doc/crate_name.json but not setting --baseline-rustdoc (leaving it unset or setting --baseline-version/--baseline-rev).
I forgot to mention; setting both --baseline-rustdoc and --current-rustdoc or neither does not trigger the panic, as well as setting just --baseline-rustdoc
Nice catch, thank you!
This should be rejected by the CLI with an error, since the baseline is not
specified. We can't use an implicit baseline like we usually do because we
have an explicit "current" setting of unknown origin.
The other combinations work because we can always use "the package in this
directory" as an implicit "current" version. Though I'm wondering what
would happen if the current directory is the root of a virtual workspace —
that might be another error or piece of unexpected behavior. Worth a look
for sure!
Steps to reproduce the bug with the above code
I am testing
sgx-quote
and my PR on it.rustdoc-json
file manually (I usedRUSTDOCFLAGS="-Z unstable-options --document-private-items --document-hidden-items --output-format=json --cap-lints=allow" cargo +nightly doc --lib --no-deps
)cargo semver-checks
while setting--current-rustdoc=target/doc/crate_name.json
but not setting--baseline-rustdoc
(leaving it unset or setting--baseline-version
/--baseline-rev
).Actual Behaviour
cargo-semver-checks
crashesExpected Behaviour
cargo-semver-checks
should work as normalGenerated System Information
System information:
Software version
cargo-semver-checks 0.36.0
Operating system
Linux 6.6.57
Command-line
cargo version
Compile time information
Cargo build configuration:
Build Configuration
Nothing of note (just setting
CARGO_HOME
)Additional Context
The text was updated successfully, but these errors were encountered: