Skip to content
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

Some way to apply a constraint on the command line to build-tool-depends #10375

Closed
geekosaur opened this issue Sep 19, 2024 · 4 comments
Closed
Labels
cabal-install: solver re: build-tool Concerning `build-tools` and `build-tool-depends` type: enhancement

Comments

@geekosaur
Copy link
Collaborator

Describe the feature request
--constraint only applies to libraries. There's no equivalent mechanism for build tools.

Additional context
happy-2.0 was just released, and breaks haskell-lib-parser and probably other things (and possibly is just straight-up broken). Until its constraint can be adjusted or a fixed happy is released, there needs to be some way to constrain it to avoid the breakage without making it a local source or editing cabal.project (which may be in CI, or you aren't doing an install within a project).

@grayjay
Copy link
Collaborator

grayjay commented Sep 20, 2024

I think that this issue is part of #3502. Is it possible to work around the specific issue with happy by using any.happy, or do you need to only constrain a specific use of the build tool?

@grayjay grayjay added cabal-install: solver re: build-tool Concerning `build-tools` and `build-tool-depends` labels Sep 20, 2024
@geekosaur
Copy link
Collaborator Author

I'm uncertain. It didn't attempt to build the library, whereas it did when I let it use happy-2.0, so I guess that's a good sign.

@grayjay
Copy link
Collaborator

grayjay commented Nov 4, 2024

@geekosaur Were you able to build the project by adding an any.happy constraint, or is there another issue that isn't covered by #3502?

@geekosaur
Copy link
Collaborator Author

We (this was originally raised by Tom Smeding on IRC, but someone else originally asked about it there) were able to get it to work with that, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: solver re: build-tool Concerning `build-tools` and `build-tool-depends` type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants