fix: Pacman provider uses unrecognized option '--update'#451
Conversation
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? |
|
@fmichea indeed Since the pacman provider isn't versionable as you pointed out, you cannot install a specific version of a package if another version is already installed. it fails to install 3.5.0 when 3.5.1 is installed: but when htop is absent: So I would say your patch is valid and improves the situation. Can you please sign the commit so we can merge it? |
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>
c37a3a9 to
6b2b2ed
Compare
|
Alright thanks for getting back to us, I have updated this PR with a SSH signed commit with As far as the problem overall, I agree with you this change is more correct than what is on main branch however I think that the fact this does not lock in the version for upgrades ( Let me know if I am still missing anything to allow for merging. |
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