fix: Pacman provider uses unrecognized option '--update'#451
Conversation
In cf789b7, long command parameters were introduced for readability. Command argument ``-U`` was changed to ``--update`` but as can be seen in the previous commit description the actual replacement for this shorthand is ``--upgrade``. Signed-off-by: Franck Michea <franck@michea.dev>
Sharpie
left a comment
There was a problem hiding this comment.
Looks good, matches pacman --help output. Thanks for the fix!
|
@fmichea tests passed, but this commit will need to be signed with a SSH or GPG key in order for the pull request to be mergable. |
|
@Sharpie I should have commented, I don't know if this change should really be merged in. It does fix the issue of the command line argument, however having tried to get it to trigger in my manifests after submitting this PR, I must say that I was unsuccessful. Going from memory so pardon inaccuracies: First it does not look like it is possible to specify only Worth noting also, pacman does not seem to support version pinning itself, there is an As is, I would say this path in the provider is not functional, it's a little more correct with this change, but I wouldn't say this code works. It at least requires a lot more testing to understand how to use. I ended up writing a shell script executed on manifests run to force install the right version and maintaining IgnorePkg separately in my own manifests to get around these issues. What do you think should happen? In my own projects without finding a way to call it properly, I think I would personally lean to remove the code path entirely, however this is a public repo and the previous versions with shorthands might have allowed people to use it successfully in their manifests so probably not an option for you. |
|
@bastelfreak as an Arch Linux user, do you have any thoughts on this one? |
Short description
In cf789b7, long command parameters were introduced for readability. Command argument
-Uwas changed to--updatebut as can be seen in the previous commit's description and below, the actual replacement for this shorthand is--upgrade. With this commit, the correct long form is added.Examples from command line:
Checklist
I have:
Signed-off-byannotation to each of my commitsGenerated-byorAssisted-byannotations to each of my commits created with the help of an AI agent