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

fix(xtask): Ignore missing files on rollback #157

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

alilleybrinker
Copy link
Member

Previously, when rolling back the creation of the CHANGELOG file, we
would error out if the file couldn't be found for deletion. However,
if the commitment step afterward runs and gets rolled back, it will
un-commit and thereby delete the file anyway, so we can instead use
rm -f to not error out if the file has already been deleted.

Signed-off-by: Andrew Lilley Brinker alilleybrinker@gmail.com

Previously, when rolling back the creation of the CHANGELOG file, we
would error out if the file couldn't be found for deletion. However,
if the commitment step afterward runs and gets rolled back, it will
un-commit and thereby delete the file anyway, so we can instead use
`rm -f` to _not_ error out if the file has already been deleted.

Signed-off-by: Andrew Lilley Brinker <alilleybrinker@gmail.com>
@alilleybrinker alilleybrinker merged commit 16ea6d6 into main Mar 6, 2024
8 checks passed
@alilleybrinker alilleybrinker deleted the alilleybrinker/rollback-changelog branch March 6, 2024 18:43
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