-
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
An unexpected error occurred: "Commit hash required". #2976
Comments
Seeing this as well. Can't seem to get out of it either. |
try regenerating your yarn.lock file? the resolved link has been changed for external dependencies - i had a dependency that looks like
and it originally resolves to i changed the dependency to this only fails for me when:
|
Seeing this error as well. My |
Same here - I'm also seeing some duplicate entries from nested dependencies unless I use the |
I haven't tracked down an exact repro yet, but I was running into issues installing |
I am having same issue |
Same issue as well |
Found out this problem has to do with `git, especially when the dependency was resolving to a git url with out a commit hash as the version. It makes since as there is no way to lock down the version when you are just loading what ever is in master. Removing all git dependencies resolved this issue for me. |
@smitt04 Glad you found a workaround. Not an option for us, unfortunately :( |
@smitt04 @kaicataldo I don't follow that there is no way to lock down a version when you are loading from master... it seems as though the |
@smitt04 |
@roderik, can you share a yarn.lock + package.json that reproduce the issue? |
@jeffscottward what i meant was that any npm packages in my |
Seeing this as well even after a yarn cache clean and removal of the node_modules folder |
I am having the issue too. Downgrading to an older version seems to solve it for me on Heroku. Maybe the following dependency in my |
I just started seeing this on Heroku today as well, with version 0.22.0 of yarn. Changing to version 0.23.2 fixed it. Change the version on Heroku by adding to package.json: {
"engines": {
"yarn": "0.23.2"
}
} |
Yay! Thanks @levity! Adding
to my |
* Update package.json Fix yarnpkg/yarn#2976 * Update package.json
* Update package.json Fix yarnpkg/yarn#2976 * Update package.json
I thought 23.2 fixed this issue for a little while, but I ran into it again trying to remove a dependency from |
Also seeing an error when managing the
Running Looks like Seems that if I install a new dependency, Yarn always tries to install
|
@BYK I'm still seeing this issue :/ edit: I'm not seeing this issue -- I had a bad https setup (invalid token), but the error message shows "Commit Hash Required" |
I was having the same issue, what solved for me was change the import on package.json from: "react-common": "git+https://github.com/vizinhanca/react-common.git#master" |
Try deleting the yarn.lock file and then |
"Try deleting the yarn.lock file and then commit existing changes". that worked for me! |
@pbirbarah , worked for me too. in my case, i received an app that was created on mac and i am on windows, yarn.lock should never be committed in a repo I think. |
|
No dice for me.
Why does it put the error log in the trash? lol... |
Check your node version |
I am also receiving this issue and have tried almost everything here I'm on yarn install v1.22.19 And added npm package
Would be nice if the error message was more descriptive of what package is 'missing a commit hash'
|
doing this without going insane requires discordjs/discord.js#9199 i attempted a monkey-patch, but then i ran into yarnpkg/yarn#2976 and i just give up, sorry. return to this if i can fix those problems
doing this without going insane requires discordjs/discord.js#9199 i attempted a monkey-patch, but then i ran into yarnpkg/yarn#2976 and i just give up, sorry. return to this if i can fix those problems
Well, I removed node_module and yarn.lock file and re-install all dependencies it worked for me. |
I've got a project, that has been running fine for months, where suddenly adding/installing
eth-lightwallet
fails duringfetching packages
withAn unexpected error occurred: "Commit hash required".
Suddenly is defined as between March 21st, 9:51AM CET - March 22nd, 5:30PM CET with a commit that did not touch the package.json or lock files (just a css and html fix)
I've tried:
if (!commit) console.log(_this2)
to my git-fetcher.js line 113 and installed usingyarn add https://github.com/roderik/eth-lightwallet.git --verbose --network-concurrency 1 --force
Result: https://gist.github.com/roderik/f5ff6abfcdcdb364f2a5327016317de0 and the error log, but this does not show a reason for the commit hash to be emptyI'm stumped and reverted to
yarn install || npm i
on my ci, but this is not really the way it's supposed to be.The text was updated successfully, but these errors were encountered: