comtrya: Bug: execution of manifests random and exits unexpectedly

Description

when i run

$ comtrya -v apply
  • I see that it picks a manifest to start with.
  • It’s not obvious why it picks that manifest.
  • Each time i run comtrya -v apply It’s never the same manifest that it starts with.
  • Each time i run comtrya -v apply The order of the manifests executed is never the same.
  • Each time i run comtrya -v apply Some manifests are not executed.

Steps to reproduce Step by step explanation. Please add the output of with -vvv flag enabled (be careful not to include any secrets from your config).

Expected behaviour What the expected behaviour in your opinion.

Environment

  • OS
  • Version: comtrya --version

Additional information Add more context which didn’t fit in the fields above.

first run :


DEBUG execute:{manifest="packagemanagers.scoop"}: Result of 'where' condition 'os.name == "windows"' -> 'true'
 INFO execute:{manifest="packagemanagers.scoop"}: CompletedDEBUG execute:{manifest="shells.powershell.fzf"}: Result of 'where' condition 'os.name == "windows"' -> 'true'
 INFO execute:{manifest="shells.powershell.fzf"}: Completed
DEBUG execute:{manifest="shells.zsh.install"}: Result of 'where' condition 'os.name == "linux" || os.name == "macos"
' -> 'false'
 INFO execute:{manifest="shells.zsh.install"}: Skip manifest, because 'where' conditions were false!

second run :

DEBUG execute:{manifest="shells.xresources.xresource"}: Result of 'where' condition 'os.name == "linux" || os.name == "macos"' -> 'false'
 INFO execute:{manifest="shells.xresources.xresource"}: Skip manifest, because 'where' conditions were false!

third run :

DEBUG execute:{manifest="devtools.vscode.config"}: Result of 'where' condition 'os.name == "windows"' -> 'true'
 INFO execute:{manifest="devtools.vscode.config"}: Completed
DEBUG execute:{manifest="devtools.asdf.setup"}: Result of 'where' condition 'os.name == "linux" || os.name == "macos"' -> 'false'
 INFO execute:{manifest="devtools.asdf.setup"}: Skip manifest, because 'where' conditions were false!

why is it random?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 17 (14 by maintainers)

Most upvoted comments

Unfortunately, this was poor examples and documentation on the feature.

We really need better docs. I’m going to open an issue to propose bringing the docs into the main repo so that they’re easier to update and can be forced at the PR level.

Apologies for the frustrations