Skip to content
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

[FEATURE REQUEST] Disable onedir salt to show " A new release of pip is available .." #67075

Open
tjyang opened this issue Nov 28, 2024 · 0 comments
Labels
Feature new functionality including changes to functionality and code refactors, etc. needs-triage

Comments

@tjyang
Copy link
Contributor

tjyang commented Nov 28, 2024

Is your feature request related to a problem? Please describe.
Since updating /opt/saltstack/salt/bin/pip is not recommend.

[me@rocky9t01a salt]$ /opt/saltstack/salt/bin/pip list |grep -i cherry
CherryPy           18.8.0

[notice] A new release of pip is available: 23.3.2 -> 24.3.1
[notice] To update, run: /opt/saltstack/salt/bin/../bin/python3.10 -m pip install --upgrade pip
[me@rocky9t01a salt]$ 

Describe the solution you'd like

  • Without the pip upgrade notice to avoid pip upgrade.
[me@rocky9t01a salt]$ /opt/saltstack/salt/bin/pip list |grep -i cherry
CherryPy           18.8.0
[me@rocky9t01a salt]$
  • Create a system pip.conf under /opt/saltstack path, that come with onedir pkg, to silence the pip upgrade notice. so following pip.conf under me user is not needed.
[me@rocky9t01a salt]$ cat ~/.config/pip/pip.conf
[global]
disable-pip-version-check = true
[me@rocky9t01a salt]$

Describe alternatives you've considered

  • Advise user to create personal pip.conf.
[me@rocky9t01a salt]$ cat ~/.config/pip/pip.conf
[global]
disable-pip-version-check = true
[me@rocky9t01a salt]$

Additional context
Add any other context or screenshots about the feature request here.

Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.

@tjyang tjyang added Feature new functionality including changes to functionality and code refactors, etc. needs-triage labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant