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

Static directory must implicitly be called "static" in any case even if derivation #1113

Open
augyg opened this issue Feb 26, 2025 · 1 comment

Comments

@augyg
Copy link
Contributor

augyg commented Feb 26, 2025

For any obelisk project where static is a derivation the staticFiles attribute implicitly needs to be

staticFiles = import ./static {inherit pkgs;};

where the filepath can only be ./static

if the folder passed to import was ./static2 or something else, the static derivation watcher watchStaticFilesDerivation will ignore it

https://github.com/obsidiansystems/obelisk/blob/master/lib/command/src/Obelisk/Command/Project.hs#L470-L475

@augyg
Copy link
Contributor Author

augyg commented Feb 26, 2025

#1112

I will fix as part of this PR

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

No branches or pull requests

1 participant