Generate files with correct owner#798
Conversation
Signed-off-by: Caleb Gilmour <caleb.gilmour@datadoghq.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: cgilmour If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @cgilmour. Thanks for your PR. I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
When preparing modifications to this repo, the pre-commit hook uses docker to run some containers and tools to generate code.
The files produced in those steps end up being owned by
rootinstead of the current user.This causes some problems, eg: when switching branches.
It can be manually cleaned up with
sudo chown -R "$USER" .This change makes sure the generated files are owned by the current user instead, avoiding the problem and cleanup.