-
Notifications
You must be signed in to change notification settings - Fork 710
Weird store path dir #9654
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
Comments
I wonder if that's a silly mistake or if it (awkwardly) has some useful role, e.g., to make sure something is distinct from something else even in degenerate circumstances, e.g., with empty path prefixes somewhere. Whatever the case, I'm sure the extra path segment can be made shorter. |
In fact, this is a bit harder to pin point. I no longer think the root cause is 5add3c9, sorry for the ping Moritz. |
The result of a lengthier investigation. When compiling a non-local dependency, we will configure, build, and copy the package into a temporary store, before finally copying atomically the entry in the temporary store to the final store.
What a journey... I'll see how to fix this tomorrow. |
There is some prior discussion about this interaction of |
It turns out that because the If Since it isn't necessarily a problem to write into |
At the very least, it does look buggy to double the path length, |
@ulidtko it's unfortunate but there is no easy solution here (changing this would imply changing many other things and break backwards compatibility). It would be cleaner not to duplicate the path in the tmp installation dir, but this is not cause for problems -- not a bug. |
Describe the bug
Non-local build packages are built in a temporary location within the cabal store.
Weirdly, this temporary location duplicates the cabal-store-path-prefix within the temporary directory, something like
This was also noted in #9640.
To Reproduce
Steps to reproduce the behavior
Prints out something like
Expected behavior
The incoming package build path should not duplicate the cabal store prefix within it.
System information
cabal
HEADThe text was updated successfully, but these errors were encountered: