feat: prevent pixi init to be executed in parent of pixi home directory#4168
feat: prevent pixi init to be executed in parent of pixi home directory#4168lucascolley merged 6 commits intoprefix-dev:mainfrom
Conversation
There was a problem hiding this comment.
nice! Could you add a test next to
pixi/tests/integration_python/test_main_cli.py
Lines 391 to 404 in 1a4df75
verify_cli_command to attempt the init. pixi/tests/integration_python/common.py
Lines 49 to 59 in 1a4df75
Use the env argument to set PIXI_HOME, pass ExitCode.FAILURE, and pass the expected error message to stderr_contains.
|
Thank you! I added the test. |
lucascolley
left a comment
There was a problem hiding this comment.
maybe https://doc.rust-lang.org/std/fs/fn.canonicalize.html#platform-specific-behavior is causing the windows failure?
|
Fixed! |
|
@Hofer-Julian can you press the green button :) ? |
Happy to, but you should be able to do that as well, right? |
|
I can now, thanks @ytausch ! |
Closes #4166.
@lucascolley I implemented the feature. Can you guide me on how your testing strategy imposes tests for this change?