Skip to content

include example/generatedCode in cabal.project #122

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

Conversation

peterbecich
Copy link
Contributor

@peterbecich peterbecich commented Jul 6, 2025

This PR allows the example/generatedCode package to be built with Cabal. I assume it is already working with the provided Stack config.

With this PR:

  • cabal build succeeds in generatedCode dir
  • cabal build all is fine as before in root dir

Before:

$ pwd
example/generatedCode

$ cabal build 
Configuration is affected by the following files:
- cabal.project
Error: [Cabal-7134]
No targets given and there is no package in the current directory. Use the target 'all' for all packages in the project or specify packages or components by name or location. See 'cabal build --help' for more details on target options.

cabal build openapi also did not work:

$ cabal build  openapi
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Error: [Cabal-7127]
Cannot build the package openapi, it is not in this project (either directly or indirectly). If you want to add it to the project then edit the cabal.project file.

Double asterisk does not solve it:

packages: **/*.cabal

@joel-bach
Copy link
Member

Cheers, thank you 🙏

@joel-bach joel-bach merged commit 08fa0eb into Haskell-OpenAPI-Code-Generator:master Jul 19, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants