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

cmd/run: Use home folder when $PWD is not in toolbox #565

Merged

Conversation

HarryMichal
Copy link
Member

Since v0.0.91[0] Toolbox throws an error if $PWD is not available in a
toolbox. While this fixes the problem with 'toolbox enter/run' silently
failing to enter/exec in a container, it still requires an action to be
made by the user. I believe it is better to handle such situations more
gracefully by falling back to entering the user's home folder + printing
a warning about doing so.

[0] #370

@HarryMichal HarryMichal added 3. Enhancement Improvement to an existing feature 6. Minor Change Should not cause breakage labels Sep 23, 2020
@HarryMichal HarryMichal added this to the Release 0.1.0 milestone Sep 23, 2020
@softwarefactory-project-zuul
Copy link

Build failed.

Base automatically changed from master to main March 25, 2021 22:25
@HarryMichal HarryMichal force-pushed the gracefully-handle-missing-paths branch from ef8299d to 25c81f3 Compare May 24, 2021 12:21
@HarryMichal
Copy link
Member Author

recheck

Since v0.0.91[0] Toolbox throws an error if $PWD is not available in a
toolbox. While this fixes the problem with 'toolbox enter/run' silently
failing to enter/exec in a container, it still requires an action to be
made by the user. I believe it is better to handle such situations more
gracefully by falling back to entering the user's home folder + printing
a warning about doing so.

[0] containers#370
@HarryMichal HarryMichal force-pushed the gracefully-handle-missing-paths branch from 25c81f3 to 18a38b9 Compare May 24, 2021 13:25
@HarryMichal HarryMichal added the 2. Container Realm The issue is related to what happens inside of a toolbox container label May 24, 2021
@HarryMichal HarryMichal merged commit 3db59ab into containers:main May 24, 2021
@HarryMichal HarryMichal deleted the gracefully-handle-missing-paths branch May 24, 2021 13:31
Copy link
Member

@debarshiray debarshiray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there already an issue or something for this? I vaguely remember discussing this before, or it could be that I am mistaken.

src/cmd/run.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. Container Realm The issue is related to what happens inside of a toolbox container 3. Enhancement Improvement to an existing feature 6. Minor Change Should not cause breakage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants