1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00

docs: Recommend setting moduleLocation by default

As `moduleLocation` can be used to avoid portential infinite loops issue, it would be nice to mention it from README.
This commit is contained in:
Yang, Bo 2024-04-14 11:27:46 -07:00 committed by GitHub
parent 9126214d0a
commit 661213432f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,10 @@ then slide `mkFlake` between your outputs function head and body,
```nix
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
flake-parts.lib.mkFlake {
inherit inputs;
moduleLocation = ./flake.nix;
} {
flake = {
# Put your original flake attributes here.
};