MolSSI/cookiecutter-cms

Miniconda download location changed

j-wags opened this issue ยท 7 comments

The download page for miniconda changed from https://repo.continuum.io/miniconda/ to https://repo.anaconda.com/miniconda/

This breaks the miniconda installation in before_install.sh.

The following line will need to be updated in all cookiecutter-based repos:

MINICONDA_MD5=$(curl -s https://repo.continuum.io/miniconda/ | grep -A3 $MINICONDA | sed -n '4p' | sed -n 's/ *<td>\(.*\)<\/td> */\1/p')

Two current options are:

  • Changing the URL directly
  • Changing from curl -s --> wget -qO-

I'm in favor of applying both changes. The URL change removes our reliance on the continuum.io --> anaconda.com redirect, and the curl --> wget change seems to change our default behavior to be "follow redirects" (though I'm no expert in curl vs. wget behavior)

We can actually get redirect follows in =curl with -L flag as well.

Either way, we have to change something since that website has apparently been moved to a new location and the .io is now a redirect.

Can we find any official word on the URL change? This seems to be just a few hours old, so I don't have a sense for whether this is a permanent change or not.

I have a mild preference for the wget since now same cmd used for both the file and the md5.

Can we find any official word on the URL change?

Can't find anything on twitter, their website, or the common issue trackers

posting what the error looks like so google searches can find this

-- Installing latest Miniconda
-- Miniconda latest version NOT FOUND in cache
Miniconda MD5 mismatch