-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Unable to pin due to incorrect coursier cache path #417
Comments
cc @cheister That somewhat means that your machine isn't going into the I'll add this to the release blockers. |
Yes I'll check that now |
Looks like it's this line https://github.com/coursier/coursier/blob/f48c1c6b01ac5b720e66e06cf93587b21d030e8c/modules/paths/src/main/java/coursier/paths/CoursierPaths.java#L60. It uses the |
Looks like it, we should maintain backwards compat with existing directories. I think doing a |
I hit another issue just now, which may be a bug in coursier: error:
(The $HOME is redacted home directory) Not sure if this is an existing issue. Was the coursier version changed recently as well? |
Actually I think this has something to do with a code generator I'm using, which is now interacting in an interesting way with the coursier cache. |
Yes I can try that out later today. |
Looks like it's working. I was able to move my cache directory back to .coursier it did not fail or redownload artifacts to the Also there's a prose version of the logic here that might be helpful to link to https://get-coursier.io/docs/cache.html#compatibility-with-former-versions, which also describes the reasoning, along with the versions where the change to cache locations took place. |
Merged #417. Thanks all! |
I'm seeing the error
Error while trying to parse the path of file in the coursier cache
when trying to pin with the latest changes meant to improve performance b16b35f. I added a print statement and found that somehow, even though I'm on mac, my coursier cache is at$HOME .coursier/cache
instead of the expected$HOME/Library/Caches/Coursier/v1
. Is this some incorrect setup or something I have cached? I have no env vars related to coursier exported. It surprises me that failing to find a cached file when pinning would not be something the rules would attempt to recover from, but I assume I'm in a broken state that wasn't anticipated.The text was updated successfully, but these errors were encountered: