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
Path to build artifacts changes depending on the build-type #4771
Comments
Unfortunately, this is expected behavior. In particular, it has less to do with Custom, and more to do with whether or not we support per-component builds; per-component builds have a different directory layout. Is there a broader context where this is a problem? |
It's just a bit confusing and annoying. For example, if a user switches a |
So, there are some workarounds available to us. For example, after running an old-style setup script, we could copy / otherwise move binaries so that they show up in the locations people "expect". This might be a bit too magical, but it would "solve" the problem, to a certain extent. |
Is there support to programmatically discover where these paths are? If that's promoted, then scripts can refer to those locations rather than trying to discover them themselves. |
Agreed -- a flag to builds that output paths to executable artifacts as a result would be welcome in general. |
@ivan-m for new-build, you can use http://hackage.haskell.org/package/cabal-plan to programmatically query the paths for build targets. |
For example, if I have a package
foo
with an executableexe
, withbuild-type: Simple
the executable will be underBut if I change the build type to
Custom
, it will be underThis is with Cabal 2.0.
/cc @ezyang
The text was updated successfully, but these errors were encountered: