Repository navigation
Keep the devtunnel data folder out of the working directory - #183
Merged
Merged
Conversation
.NET programs such as devtunnel put their data folder into the working directory when ~/.local/share does not exist. A new home did not have this directory, so each devtunnel call left a DevTunnels folder in the directory where the agent was. The setup of the home now makes ~/.local/share. For the same reason, the version check in the image build left /DevTunnels in the image. The cleanup of 37efdde removed a path that never existed. It now removes /DevTunnels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.NET programs such as devtunnel put their data folder into the working directory when
~/.local/sharedoes not exist. A new home did not have this directory, so eachdevtunnelcall left aDevTunnelsfolder in the directory where the agent was, for example in/workspacecheckouts.Changes:
box-image/setup.shmakes~/.local/sharetogether with~/.local/bin.box-image/Dockerfileremoves/DevTunnelsafter the version check. The version check runs as root without/root/.local/share, so the folder was left in/of the image. The old cleanup removed/root/.local/share/DevTunnels, which never existed.Tested in a box: with an empty home,
devtunnel --versionwroteDevTunnels/into the working directory. With~/.local/sharepresent, it wrote~/.local/share/DevTunnels/.Not tested: an image build and a new box, because Docker is not available here.
DevTunnelsfolders that already exist in workspaces are not removed.