Better handling of optional dependencies #152
Replies: 1 comment
Yeah. It's packages which are installed "as dependencies" ( I think as a compromise we could make aconfmgr print a warning after
I think this particular problem has a much simpler practical solution: list dependencies of a package right where you have the package itself. Most non-trivial parts of the configuration are going to have additional declarations for things like configuration or ignore files, and dependencies are a part of that. There's no harm in having multiple See also: |
Uh oh!
There was an error while loading. Please reload this page.
Quoting the readme:
There are two issues with this.
savefollowed byapplyis not idempotent if there are any packages in this state.pacman -Qtdwill tell me about the no longer needed dependency. This only works if the package is not marked as explicit however. Without this, there is a high risk I will forget about the optional dependency and leave it installed.I propose a new
AddPackageAsDependency(or similar, I don't care about the name of it), or perhaps a flag toAddPackagethat will allow marking the package as installed as a dependency to satisfy bothpacmanandaconfmgrAll reactions