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

Intermittent failure #114

Open
hirak99 opened this issue Jul 16, 2022 · 0 comments
Open

Intermittent failure #114

hirak99 opened this issue Jul 16, 2022 · 0 comments

Comments

@hirak99
Copy link

hirak99 commented Jul 16, 2022

On some runs, freuqnetly enough, this completely erases the existing code, and replaces it with license text.

My guess is that there's perhaps a race condition somewhere in the code.

To replicate this, the following works for me -

  1. I invoke it like below (on a repo with just about 15 files) -
find | xargs ~/go/bin/addlicense

I have about 15 files.

There's a good chance that this erases one of my files with just the license. If it didn't -

  1. Git reset to remove the lincense again -
git reset --hard

And go to step 1 until you see this happening.

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

No branches or pull requests

1 participant