"Warning - a newer version of conda exists" - logged as a warning on Windows
See original GitHub issueBelow a snippet of the log, installing conda on windows-latest
with this config:
with:
auto-update-environment: false
activate-environment: testenv
If you notice the ##[warning]
below, I think that’s what’s causing the warning to get logged and reported as an annotation in actions ui? Interestingly, it does only happen on windows runners.
Is there any way to suppress that?
:: ---------------------------------------------------------------------------
# Create test environment...
############################
C:\windows\system32\cmd.exe /D /S /C "C:\Miniconda\condabin\conda.bat create --name testenv"
Collecting package metadata: ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: C:\Miniconda\envs\testenv
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
##[warning]
==> WARNING: A newer version of conda exists. <==
current version: 4.6.14
latest version: 4.8.3
Please update conda by running
$ conda update -n base -c defaults conda
==> WARNING: A newer version of conda exists. <==
current version: 4.6.14
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
WARNING: A newer version of conda exists. #8162 - GitHub
Current Behavior conda update conda stuck at A newer version of conda exists but will not update it Steps to Reproduce > conda...
Read more >How to use "conda update -n base conda" properly
I.e. when updating one of my environments with conda update --all , I get a warning ==> WARNING: A newer version of conda...
Read more >Determining your conda version
To suppress the following warning message when you do not want to update conda to the latest version: ==> WARNING: A newer version...
Read more >newer version of conda exists run "..." - Julia Discourse
WARNING: A newer version of conda exists. <== current version: 4.4.2 latest version: 4.4.6 Please update conda by running $ conda update -n ......
Read more >Troubleshooting — Anaconda documentation
Anaconda 5.0.1 sometimes does not install completely on Windows. Solution¶. Until a new version is released, you can install Miniconda, and then ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cool, feature request opened at https://github.com/actions/virtual-environments/issues/1580, let’s all go and add our upvotes! Or if someone wants to submit a PR, go for it too!
The reason the warning exists for Ubuntu too is because the latest conda version is 4.8.4, but only 4.8.3 installers are available (see https://repo.anaconda.com/miniconda/). The ‘miniconda-version: “latest”’ is only able to pull down the ‘Miniconda3-latest-Linux-x86_64.sh’ installer, which is at 4.8.3 right now.
#79 has added the bootstrap approach. I decided to not clean it up, as it will get overwritten if a
condarc-file
is specified. Otherwise, I just don’t think folk will care enough to have exactly the hottest version of conda.