Open benny1213 opened 3 months ago
Can you add a comprehensive description of what this change is supposed to do/fix?
Can you add a comprehensive description of what this change is supposed to do/fix?
sure, i will create a minimal Minimal reproducible repository for better describe this PR later, please wait a moment thanks.
hi @arcanis it's my first time raising a PR to public repo, If there is anything wrong, I am willing to modify it.
i think there is two work still need to do:
What's the problem this PR addresses?
when running
yarn install
script, there is an error occur: "xx must be built because it never has been before or the last one failed" and the postinstall script of the error package did not run correctly.Preconditions:
yarn.js
yarn
command in thepostinstall
script.you can find more detail from minimal reproducible repo
How did you fix it?
after debug, i found the
linkersCustomData
did not restore correctly when running theyarn
in thepostinstall
script, which causing yarn command in postinstall script refused to run.so i tried calling
project.restoreInstallState()
when customData is missing to try restore the customData.after i fixed this issue, i found two little issue still showing:
project.findLocatorForLocation
yarn alway pass a path with a/
ending, but thelocatorByPath
map only contains key without/
ending.locator
should be a Locator struct instead of a stringi also fixed these two problem as the file changes show.
Checklist