-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkgx install
should overwrite existing versions
#6
Comments
pkgx install
should overwrite existing versions
yeah, the non-zero exit code feels incorrect. as far as your CI/CD goes, even something as simple as: |
Yeah. For now I do |
pkgxdev/pkgx#1111 fixes the issue for pkgx v1. I don't know if pkgx v2/pkgm is affected by the same issue though. |
Let's say I previously had:
pkgx install java@17
Then later:
Here is what I think:
pkgx install
should uninstall if previously installed and then install again the new version. Just likesudo apt-get install docker-ce-cli=5:25.0.3-1~ubuntu.22.04~jammy
.If 1 is too hard to be implemented, the least pkgx should do is to return a non-zero code when another version of the package is already installed.
This happened in my CI/CD, where I ship an environment with
pkgx install java@17
, but some services needed to usejava@11
.Their pipelines were configured to run
pkgx install java@11
but since a succesful exit code was given, the application was still being built with java@17.The text was updated successfully, but these errors were encountered: