diff options
| author | Fuwn <[email protected]> | 2024-11-26 04:17:55 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-11-26 04:17:55 +0000 |
| commit | 73339dda053213ee25d1be7cd699ba077bf9bc78 (patch) | |
| tree | da202c119aa967ebd4040121375c17ba3f1138a7 | |
| parent | chore(flake): bump nixpkgs (diff) | |
| download | yae-73339dda053213ee25d1be7cd699ba077bf9bc78.tar.xz yae-73339dda053213ee25d1be7cd699ba077bf9bc78.zip | |
fix(init): initialise base empty environment on init command
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | internal/commands/init.go | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -54,7 +54,7 @@ inherit meta; pname = name; - version = "2024.10.25"; + version = "2024.11.25"; src = pkgs.lib.cleanSource ./.; vendorHash = "sha256-XQEB2vgiztbtLnc7BR4WTouPI+2NDQXXFUNidqmvbac="; buildInputs = [ pkgs.musl ]; diff --git a/internal/commands/init.go b/internal/commands/init.go index c4bc138..94433ab 100644 --- a/internal/commands/init.go +++ b/internal/commands/init.go @@ -14,6 +14,9 @@ func Init(sources *yae.Environment) func(c *cli.Context) error { return fmt.Errorf("sources file already exists") } + sources.Sources = make(map[string]yae.Source) + sources.Schema = "https://raw.githubusercontent.com/Fuwn/yae/refs/heads/main/yae.schema.json" + if c.Bool("dry-run") { return nil } |