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
Use shorter build path to avoid long path issues on Windows #969
Use shorter build path to avoid long path issues on Windows #969
Conversation
0ce6988
to
aa74533
Compare
Please don't merge it just yet |
When packages need deep nested paths (like ocaml-migrate-parsetree. See https://gist.github.com/prometheansacrifice/7309940918d646d465d9d6abd0a5d231), packages fail to build (despite having enabled long paths). This PR uses a shorter path for global build cache.
8527211
to
928c68d
Compare
Tested and works fine with OCaml Parse Migratetree |
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.
Looks good! Thank you.
One thing I wonder is if we could keep the config for esy-build-package with the same number of options. Right now globalStorePrefix
and storePath
both are redundant I think.
storePath: EsyLib.Path.t, | ||
localStorePath: EsyLib.Path.t, | ||
disableSandbox: bool, | ||
}; |
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.
Is there a way we could keep only three paths there — project path, path for immutable builds (global store) and path for transient builds (local store)?
I think here we could determine storePath
out of globalStorePrefix
, right?
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.
Yeah, we can definitely do that. I'll be on it.
4f01a75
to
11e08b0
Compare
Thanks @prometheansacrifice ! |
Good to merge @andreypopp? This could get rid of a huge set of potential windows build failures (though I haven't seen any lately). |
This reverts commit df516af.
2e8325e
to
be00486
Compare
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.
Awesome!
Sorry, missed the notification. Glad to see this merged! |
Uses shorted build path /.esy//b
When packages need deep nested paths (like
ocaml-migrate-parsetree. See
https://gist.github.com/prometheansacrifice/7309940918d646d465d9d6abd0a5d231),
packages fail to build (despite having enabled long paths). This PR
uses a shorter path for global build cache.