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

[command] bugfix: UserLabels read incompleted laberls.yaml #1759

Merged
merged 2 commits into from
Jun 12, 2023

Conversation

fenrir-z
Copy link
Contributor

write to a tmp file and then rename to labels.yaml
if read before rename, we'll get an old file
if read after rename, we'll get a new file

this is safe because:
https://stackoverflow.com/questions/72997975/can-you-safely-read-a-file-which-is-target-of-mv-command

@fenrir-z fenrir-z marked this pull request as ready for review June 12, 2023 11:23
@fenrir-z fenrir-z requested a review from a team June 12, 2023 11:23
@IJtLJZ8Rm4Yr IJtLJZ8Rm4Yr merged commit ec4acce into IndustryEssentials:dev Jun 12, 2023
@fenrir-z fenrir-z deleted the zzw/bugfix branch June 12, 2023 12:22
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.

3 participants