Skip to content

Conversation

@vipul-21
Copy link
Contributor

@vipul-21 vipul-21 commented Sep 8, 2022

Reason for Change:
This is a fix for the cyclic dependency in the dropgz deploy subcommand. The deploy command is trying to write a file that is already being executed by some other program.
This change renames the current dest as old one ( deleting the old dest if it exists) and then try to write the new content to the dest.

Requirements:

Notes:
Tested the change locally by trying to use the deploy cmd for a file that was running continuously in the background.

@vipul-21 vipul-21 requested a review from rbtr September 8, 2022 07:08
@vipul-21 vipul-21 changed the title fix: Dropgz deploy cmd - Clearing the dest before writing into it to avoid race condition fix: Dropgz deploy cmd - Clearing the dest before writing into it to avoid race condition Sep 8, 2022
@vipul-21 vipul-21 closed this Sep 8, 2022
@vipul-21
Copy link
Contributor Author

vipul-21 commented Sep 8, 2022

Don't want multiple PR for same fix. so closing this one

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.

1 participant