-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Can't install project when yarn cache is present and no global git user is configured #5303
Comments
Yarn runs Some other applications have this same issue https://stackoverflow.com/questions/11656761/git-please-tell-me-who-you-are-error which I think Is there a reason you can't configure |
that's why I mentioned in issue summary:
that's exactly the reason of the issue. but I find yarn using my git profile as abuse of my profile, yarn shall not do anything with my profile. |
Also, be aware that if I |
That makes sense. Thanks for the additional info. Do you have a dependency that is a github url? I'm trying to trace back why it would be using Setting a "dummy user" for the project seems questionable. We would have to start detecting if a user exists first, then set one, then clear it again when done. I think it might be easier to use |
yes, I do have git-based package, as it's visible in my first post:
in concrete, it's
worst case scenario, it could always clone the repo with given version:
|
Git should only need a user name/... when you want to commit. The "read only" operations usually don't need git info configured. But So But it turns out yarn already did once use bare repositories and fetch instead of pull, it was changed in #514. It's not clear to me why/how exactly that change solved the bug it apparently did solve. |
"good" there are some tests for that bug... |
We have hit this twice over the last few months on our CI builds. Is there any progress or suggested workarounds? The current workaround of manually clearing the cache isn't very practical. |
also ran into this issue today. |
Also, use git remote set-head in case the repository’s default branch has been renamed. Fixes yarnpkg#5303. Signed-off-by: Anders Kaseorg <[email protected]>
Do you want to request a feature or report a bug?
bug
What is the current behavior?
crash during instlalation
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
not crashing, eg using dummy git user
Please mention your node.js, yarn and operating system version.
node 8.9.4, ubuntu
The text was updated successfully, but these errors were encountered: