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

support removing empty cache directories #550

Merged
merged 1 commit into from
May 24, 2016
Merged

support removing empty cache directories #550

merged 1 commit into from
May 24, 2016

Conversation

mattray
Copy link
Contributor

@mattray mattray commented May 21, 2016

"rm $HAB_STUDIO_ROOT$HAB_CACHE_ARTIFACT_PATH/*" with an empty directory fails the script.

@thesentinels
Copy link
Contributor

By analyzing the blame information on this pull request, we identified @fnichol and @adamhjk to be potential reviewers

@reset
Copy link
Collaborator

reset commented May 24, 2016

@fnichol was there any reason that you didn't recursively delete the contents of this directory? Is it safe to do so?

@fnichol
Copy link
Collaborator

fnichol commented May 24, 2016

@reset No, it's okay to recursively delete the contents of that directory--not even sure why I didn't originally. In fact, after I tweaked some of the download logic (already in master), it's pretty safe to delete that directory itself if desired--that directory will be created just before it's used on artifact download. Same for the key cache under /hab/cache/keys.

@reset
Copy link
Collaborator

reset commented May 24, 2016

@fnichol thanks for the response!

@thesentinels r+

@thesentinels
Copy link
Contributor

📌 Commit b19a584 has been approved by reset

@thesentinels
Copy link
Contributor

⌛ Testing commit b19a584 with merge 6bf3089...

thesentinels pushed a commit that referenced this pull request May 24, 2016
Pull request: #550
Approved by: reset
@thesentinels
Copy link
Contributor

☀️ Test successful - travis

@thesentinels thesentinels merged commit b19a584 into habitat-sh:master May 24, 2016
jtimberman pushed a commit that referenced this pull request Jun 12, 2016
Pull request: #550
Approved by: reset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants