Open emmanuelrosa opened 2 years ago
Can you check again from master? There have been merged a couple of fix-PRs lately.
I checked again, but it produces a different error:
❯ nix run github:styx-static/styx -- new site styx-test
wrote: /home/emmanuel/projects/styx-test/conf.nix
wrote: /home/emmanuel/projects/styx-test/data/.gitkeep
wrote: /home/emmanuel/projects/styx-test/data
wrote: /home/emmanuel/projects/styx-test/readme.md
wrote: /home/emmanuel/projects/styx-test/site.nix
wrote: /home/emmanuel/projects/styx-test/themes/.gitkeep
wrote: /home/emmanuel/projects/styx-test/themes
Styx site initialized in '/home/emmanuel/projects/styx-test'.
~/projects took 19s
❯ cd styx-test/
~/projects/styx-test
❯ nix run github:styx-static/styx -- build
Building the site...
error: opening file '/home/emmanuel/projects/styx-test/flake.lock': No such file or directory
(use '--show-trace' to show detailed location information)
---
Error: Site could not been built, fix the errors and run the command again.
The '--show-trace' flag can be used to show debug information.
It looks like it's expecting the site to be a flake.
There seems to be a side-condition which makes tests succeed: https://github.com/styx-static/styx/blob/master/src/_automation/tests.nix#L44-L55
I was able to initialize a new site, but it doesn't build:
Package info: