-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
--manifest-path path/to/NonCargo.toml fails #6690
Comments
Yes, I met the same issue. Can we just delete this check and update related testcases? cargo/src/cargo/util/command_prelude.rs Lines 260 to 262 in 9be4594
|
This seems like a valuable feature to have, in the case where one codebase has to run through several unique compilation chains, to support things like having a separate |
Going to write up some quick thoughts from different angles. This would only be able to work with Since this was opened, we took advantage of this flexibility in adding support for single-file packages in #12289 and then allowing Depending on what all was different between files, this could also cause a lot of churn in The alternative For some of the use cases, I wonder if features like the following would be better
Or just defining separate packages. |
Based on the above plus our design principle of having opinionated workflows,. I'm going to propose to the cargo team that we close this. |
I don't feel strongly about this at all but it seem does seem unfortunate that Or maybe it should have always been |
Part of this comes down to use cases. For most I've seen, its to cover for missing features of Cargo and we'd like want to focus on those. If there are more, let us know! For some context, this isn't just a superficial change in the CLI and we're done. As of right now, we track path sources by directory, preventing us from being able to convert from that back to a non-canonical That involves the infrastructure side. The next part is if we should allow having dependencies to a We'd also need to consider how we tell the formats apart. Right now,, the rules are
I'd really not like to get into sniffing the file contents and guessing as a small bug could have very strange results. We'd need to define what we use to recognize something is a regular manifest format. |
Fair enough. |
fails with
but my
NotCargo.toml
is a manifest file.So either the option needs to be called
--cargo-toml-path
, or it should IMO accept any TOML file that's a valid manifest path.Motivation: working around cargo bugs often requires having many manifests files and using different ones depending on what one is trying to do (e.g. build for two different editions, build without dev-dependencies in the dependency graph, etc.).
The text was updated successfully, but these errors were encountered: