-
Notifications
You must be signed in to change notification settings - Fork 204
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
feat: manifest-path must point to a pixi.toml #324
Conversation
Hmm, I'm not sure what prior art is here, I believe In my workaround, I'm explicitly using Do you think supporting the Conda is one step short of that in the sense that they provide global envs, but don't have task running support. |
Cargo has the same behavior: $ mv Cargo.toml FooBar.toml
$ cargo b --manifest-path FooBar.toml
error: the manifest-path must be a path to a Cargo.toml file
You can still achieve this behavior by placing
That would set global state which would alter the behavior of regular pixi commands I don't feel like this is something we should add. For instance, what would the following do:
Would that then implicitly also use
That's also not what the vision of Pixi is. Different from conda, Pixi offers a project-based workflow, we do not intend to provide global environments in a similar fashion to conda/(micro)mamba. Those tools already do a very good job at that. |
ah, sorry, i misremembered. I do think providing that |
It's just a foot gun. I can imagine that people will "source" an environment using |
This PR forces the
--manifest-path
argument to point to apixi.toml
file.I think its important to always name your project file
pixi.toml
. This way it's easy for the user to understand what the file is as well as for (future) automation. It also enforces that no two project manifests share the same “.pixi” folder.