vulcan-api / spito

spito is a powerful config management system
https://vulcan-api.github.io/spito/
GNU General Public License v3.0
3 stars 0 forks source link

`spito check` doesn't work #104

Closed cooligus closed 8 months ago

cooligus commented 9 months ago

This spito.yml

repo_url: https://github.com/avorty/spito-ruleset
git_prefix: github.com
identifier: avorty/spito-ruleset

rules:
    dbus: ./rules/dbus.lua
    nerd-fonts: ./rules/nerd-fonts.lua
    info: ./rules/info.lua

Causes this error when executing spito g samba

[error] yaml: unmarshal errors:
  line 6: cannot unmarshal !!str `./rules...` into cmd.Rule
  line 7: cannot unmarshal !!str `./rules...` into cmd.Rule
  line 8: cannot unmarshal !!str `./rules...` into cmd.Rule

As a result command spito check avorty/spito-ruleset info throws this output:

Failed to read script called: info from github.com/avorty/spito-ruleset
open /home/jarek/.local/state/spito/rulesets/github.com/avorty/spito-ruleset/spito.yaml: no such file or directory

BTW it doesn't end with a new line: image