-
Notifications
You must be signed in to change notification settings - Fork 94
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
Create the output directory if its missing and force
is used, otherwise raise
#295
Conversation
We require contributors to sign our Contributor License Agreement and we don't have one on file for @KrishanBhasin. In order for us to review and merge your code, please e-sign the Contributor License Agreement PDF. We then need to manually verify your signature, merge the PR (conda/infrastructure#847), and ping the bot to refresh the PR. |
33dc024
to
8490ce5
Compare
This is looking good and would happily merge 👍 Waiting for the CLA to be merged first though. |
@conda-bot check |
@xhochy I have tidied it up a little bit and updated the docs/news; this is ready to review now No rush or pressure, just let me know if there's any changes you'd prefer to see |
Thanks! |
Description
I've had a couple of occasions where I've used
conda-pack
and asked it to output to a directory that doesn't exist by accident. The packing goes ahead and the operation eventually fails in theshutil.move()
command right at the end.I wanted to make it fail early instead or, if
force
was used, to create the directory.I've gotten it into a 'good enough' working state, and can tidy it up further if you would be open to merging this change.
Checklist - did you ...
news
directory (using the template) for the next release's release notes?