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

Env from .cur+env is used when specifying an illegal one #31

Open
fmauch opened this issue Jun 20, 2024 · 1 comment
Open

Env from .cur+env is used when specifying an illegal one #31

fmauch opened this issue Jun 20, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@fmauch
Copy link
Contributor

fmauch commented Jun 20, 2024

When change_environment is called with a non-existing environment, an error is thrown, but the command then falls back to sourcing what was in the .cur_env file before.

@fmauch fmauch added the bug Something isn't working label Jun 20, 2024
@fmauch fmauch self-assigned this Jun 20, 2024
@fmauch
Copy link
Contributor Author

fmauch commented Jun 20, 2024

@Oberacda, since you reported this to me directly: I cannot reproduce this:

ubuntu@jammy ~> $ fzirob change_environment fsgfhgdhdg                                                                                                                                                                                                                                                                                   
rob_folders change_environment fsgfhgdhdg
No environment with name < fsgfhgdhdg > found.
Execution of module 'EnvironmentChoice' failed. Error message:
'unknown environment'
                                                                                                                                                                                                                                                                                                                            
ubuntu@jammy ~> $ echo $?                                                                                                                                                                                                                                                                                                                
1
                                                                                                                                                                                                                                                                                                                            
ubuntu@jammy ~> $ cat checkout/.cur_env                                                                                                                                                                                                                                                                                                  
ur_rolling%

Did I understand something wrong?

@fmauch fmauch added question Further information is requested and removed bug Something isn't working labels Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant