-
-
Notifications
You must be signed in to change notification settings - Fork 52
Fix cache missing #149
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
Fix cache missing #149
Conversation
Oh no lol |
flatpak-builder/index.js
Outdated
[ | ||
'.flatpak-builder' | ||
], |
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.
[ | |
'.flatpak-builder' | |
], | |
[...CACHE_PATH], // TODO: drop once https://github.com/actions/toolkit/pull/1378 is merged |
is better for me
also you will have to rebuild the index.js, see contributing guidelines
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.
@bilelmoussaoui
I made the modifications as required. However, when I compiled using ncc, the generated files differed significantly from the previous ones. I checked the previous pull requests, but didn't find this issue. Since I'm not very familiar with node.js and related things, I manually edited the dist/index.js.
I hope it works fine now.
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.
No, please just run ncc & push your changes. The file should never be modified manually
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.
Update flatpak-builder/dist/index.js
compiled by nodes 18.17.0 / yarn 1.22.19 / ncc 0.36.1
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.
Sorry, I know what to do now. Please wait a moment
c916ac0
to
c886bfd
Compare
@bilelmoussaoui Now it's ready to merge, Thanks for the help~ |
Rebased to fix conflicts |
Would you mind rebasing again please? Thank you |
Rebased again |
Thank you !!! |
Due to an oversight in actions/toolkit, the
CACHE_PATH
was modified after runningcache.restoreCache
function. As a result, an incorrect version was generated during cache upload, leading to cache missing.This PR independently passes the
CACHE_PATH
to avoid issues caused by s 8000 hallow copying.Fix issue:#142
Refer to : actions/toolkit#1378 (comment)