-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
can fail when projects of same name are in a subdirectory #462
Comments
Thanks for the bug report. Triaged the bug down to this block. Here's roughly what's happening:
In retrospect this is clearly buggy. How do cargo commands figure out the package or workspace a command applies to? |
It's a bit complicated, but without I think perhaps I think I would recommend something like:
|
Thanks for the awesome explanation and suggestions. Much appreciated! I'll look into the approach you recommended. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There's still an issue here, even though the original repro didn't work. I have ameliorated the situation somewhat, in that instead of corrupting our data and possibly throwing an obscure/unrelated error, c-s-c will now explicitly check if the same package name is used in multiple manifests within the same directory (possibly in multiple workspaces): #887 I don't consider this issue resolved, since c-s-c still fails if projects of the same name are in the same directory tree. A full solution will require a change in semantics and the use of |
Steps to reproduce the bug with the above code
git clone https://github.com/rust-lang/mdbook.git
cd mdbook
git worktree add mdbook-0.2 v0.2.0
cargo semver-checks check-release
Actual Behaviour
Expected Behaviour
It should run the semver checks for the package in the current directory. I would not expect it to go looking outside of the current directory for the project. It should follow the same behavior as cargo for finding the package to use.
(I likely don't know why it is walking the directory, but it is not clear to me why it would behave differently from other cargo commands.)
Generated System Information
Software version
cargo-semver-checks 0.20.1
Operating system
macOS 13.4 (Darwin 22.5.0)
Command-line
cargo version
Compile time information
Build Configuration
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: