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

flake-parts module is satisfied neither with nor without projectRootFile #219

Open
emilazy opened this issue Aug 10, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@emilazy
Copy link
Contributor

emilazy commented Aug 10, 2024

The flake-parts module sets projectRoot, so if you set projectRootFile you get treefmt: error: --tree-root and --tree-root-file can't be used together. However, if you don’t set it, you get error: The option `perSystem.x86_64-darwin.treefmt.projectRootFile' is used but not defined..

@emilazy emilazy added the bug Something isn't working label Aug 10, 2024
@emilazy
Copy link
Contributor Author

emilazy commented Aug 10, 2024

I’m not actually sure where the CLI tool is getting --tree-root to complain about it. The generated configuration file doesn’t set anything like that, and it’s not passed as a parameter directly.

@emilazy
Copy link
Contributor Author

emilazy commented Aug 10, 2024

Ah, I think this might actually be an unfortunate devshell interaction, because PRJ_ROOT is set…

In any case, presumably projectRootFile should be optional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant