Replies: 1 comment 3 replies
-
|
Hi there! Both the I for one would find it very strange if this wasn't the default behavior in pyinfra. TBH it's not clear to me why you encounter this error in your |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Both files.copy() (source) and files.move() (source) fail when the source file is not present.
To reproduce:
I ran into this issue with a real life deploy like below:
Since the repository is not cloned before its first run, the deploy fails.
What's the rationale for those operations to fail with missing
src?With what I understand now, I suggest this to be changed, so those operations do not fail, unless a flag is given, e.g.
assume_src_exists.Will do a PR (for 4.x?) if a change is desired.
Beta Was this translation helpful? Give feedback.
All reactions