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

CLI: Search upwards for Cargo.toml to detect --project-path #2373

Open
bfops opened this issue Mar 7, 2025 · 0 comments
Open

CLI: Search upwards for Cargo.toml to detect --project-path #2373

bfops opened this issue Mar 7, 2025 · 0 comments
Assignees

Comments

@bfops
Copy link
Collaborator

bfops commented Mar 7, 2025

Several CLI subcommands (publish, build, generate, possibly others) attempt to determine whether the project is Rust or C# by looking for a Cargo.toml file in the current directory (or the --project-path if passed), and assume C# if the Cargo.toml is not found. This is a bad system and should be changed, but at the very least, they should search up for the Cargo.toml so that it's possible to run the commands from a subdirectory of a Rust project (e.g. in src/).

@bfops bfops self-assigned this Mar 7, 2025
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

1 participant