Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

gitserver: use os.Remove in testRepoCorrupter#23283

Merged
keegancsmith merged 1 commit intomainfrom
k/gitserver-repocorrupter
Jul 28, 2021
Merged

gitserver: use os.Remove in testRepoCorrupter#23283
keegancsmith merged 1 commit intomainfrom
k/gitserver-repocorrupter

Conversation

@keegancsmith
Copy link
Copy Markdown
Member

This way we handle an error if the file is already gone. Noticed it because we are not setting PATH in cmd test wrapper, so depending on your environment it might not find "rm". An example is nix where rm (coreutils) is in a separate bin to sh (bash). We could just specify PATH, but I thought it's better to just use os.Remove anyways.

This way we handle an error if the file is already gone. Noticed it
because we are not setting PATH in cmd test wrapper, so depending on
your environment it might not find "rm". An example is nix where
rm (coreutils) is in a separate bin to sh (bash). We could just specify
PATH, but I thought it's better to just use os.Remove anyways.
@keegancsmith keegancsmith requested review from a team and flying-robot July 27, 2021 22:32
Copy link
Copy Markdown
Contributor

@flying-robot flying-robot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@keegancsmith keegancsmith merged commit 6a647c7 into main Jul 28, 2021
@keegancsmith keegancsmith deleted the k/gitserver-repocorrupter branch July 28, 2021 06:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants