-
Notifications
You must be signed in to change notification settings - Fork 132
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
Introduce global git cache #1240
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, this patch looks much better! The overall structure is good and I left a few minor comments about code organisation and naming
CI fails one test, but I'm hoping it's a glitch 😄
Ah right, CI fails because this change is correct 🙂 |
@f-f I applied your suggested changes, and also an |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that we have three file system operations, it is not atomic. Not sure what to do about this.
We can catch filesystem errors, see the suggestions
Note: we'll still need some changes to the tests, see my previous comment
I don't know how to change the version of |
@f-f Let me know if there are any remaining tasks for this, please! I have fixed the formatting. |
CI fails because on Windows (and only there) the folder in the cache is not found when we go copy it:
I had weird encounters with windows not writing files to disk in a timely manner, but it would be strange if it would do it for entire folders. |
Ah that's strange - I wonder if this is about Node versions? In CI we're using a pretty old one, 18: spago/.github/workflows/build.yml Line 41 in 5299970
Bumping it up to 22 might just fix it. |
Is there a way to get the test runner to just run a single test? That would help with diagnosing whether it's the state carried over between tests that is messing up the failing test. |
Yes! You can swap the |
Trying this out on my windows machine, I can't reproduce it either unfortunately. I'd really like to merge this ASAP - but adding debug prints to CI seems to be the only way to debug this, so it will be slow |
Superseded by #1275 |
Description of the change
Another attempt at #1238. This introduces a global git cache which is used for
non-branches. That means that if you have a tag/commit specified on multiple
dependencies, it will only be cloned once.
Checklist:
README