-
Notifications
You must be signed in to change notification settings - Fork 135
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
After doing pixi shell, the manifest path is still pointing at the default of pixi.toml #319
Comments
I didn't understand the issue but now I understand that you want to be able to use a different filename for the I'm also not comfortable adding this as a supported use case for pixi. I think this is confusing behavior because it makes it less clear to a user who is browsing the files of your package (and potential future IDE integrations). I think the name I think instead we should modify our logic so that if the argument to |
That's a little orthogonal to my issue, I think once you've |
Mm maybe I misunderstand then. Do you maybe have a reproducible case which shows what is happening now and what you would expect? |
If you have two toml files:
The first has a task called Let's say you do this from the root directory of the package (which has the two toml files)
|
This was discussed in our discord server. I think it is confusing that with the suggestions above Given this folder structure.
$ pixi shell # activate the shell from the project in the root
$ cd subproject
$ pixi run task Is I prefer to always use the same way of doing things (so task from subproject will be used in the sample above). I added a PR that requires that a I understand this is far from ideal given that we don't support multiple environments yet and this makes your workaround harder. But I don't want to introduce an API to enable a workaround that people will start relying on. |
With #324 you can no longer have multiple pixi projects in the same folder which fixes part of this issue. The other issue, where a manifest should be preferred that is used in the shell instead of looking at the files at disk, we will not implement. Im going to close this issue for now. I know we actually made the situation more complicated for this particular use case rather than simpler but it is not our vision with pixi to enable globally activated environments. The original issue where you want to have multiple dependencies sets can still be achieved by using subdirectories with pixi.tomls inside until we figure out a solution to do this from a single pixi.toml file. |
Do you know if there's a non-verbose way of doing this? Having tasks associated with certain sets of dependencies seems very painful to use, ie. you have to invoke pixi from the subdirectory instead of globally (within the project). |
Problem description
Instead, I'd expect that doing a
pixi shell --manifest-path some/path/file.toml
would make your manifest path alwayssome/path/file.toml
. This would make multiple manifest files much more usable (currently using this as a workaround for the lack of optional dependencies for cuda vs CPU only situations).I think regardless of whether multiple manifest files makes sense, I think the behavior should always be the default (at least I can't think of any reason not for this to be)?
The text was updated successfully, but these errors were encountered: