question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Warning - a newer version of conda exists" - logged as a warning on Windows

See original GitHub issue

Below 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:closed
  • Created 3 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
weiji14commented, Sep 13, 2020

That sounds like a good idea. Maybe add to the issue linked so others can go and bump a +1

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!

Is this issue for Windows only? As in #58 (comment), I’m also seeing it on Ubuntu. Could it be renamed if for both? Or I can open a new issue for Ubuntu otherwise.

I thought that

with:
  miniconda-version: "latest"

would fix it, but it does not. (What does that statement do?)

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.

0reactions
bollwyvlcommented, Oct 6, 2020

#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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found