Repository navigation
Install miniforge3 for ubuntu 26 - #231
Conversation
| versionSpec: "$(PYTHON_VERSION)" | ||
| - script: | | ||
| curl -fsSL -o $HOME/miniforge.sh https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh | ||
| sudo mkdir -p /usr/share/miniforge3 |
There was a problem hiding this comment.
Is this trying to override some pre-existing installation from the base image?
There was a problem hiding this comment.
Its downloading the installer script and creating a new dir for the installation of miniforge3. Alternative would be to install it to existing /usr/share/miniconda (would reduce diff) but since this is specifically miniforge3 I don't want to overwrite miniconda (not sure if anything is there anyway)
There was a problem hiding this comment.
Then why /usr/share specifically? And is it guaranteed that the base image won't switch from miniconda to miniforge and trigger a clash?
There was a problem hiding this comment.
/usr/share because thats where miniconda was, but I can change it if desired. as for clash - I don't believe anything is present at miniconda (previous jobs had conda not found issue when trying to use that path)
There was a problem hiding this comment.
/usr/share because thats where miniconda was, but I can change it if desired. as for clash - I don't believe anything is present at miniconda (previous jobs had conda not found issue when trying to use that path)
If it's not shared with other jobs, then maybe it'd be better to use a different path.
There was a problem hiding this comment.
Good point, just updated to switch to HOME instead for manual install
Description
This repo's Azure Pipelines Linux jobs run on
ubuntu-latest, and the repo has no automated dependency or version management (no Renovate, no Dependabot version updates), so image changes land without a PR.ubuntu-latestrecently switched to Ubuntu 26.04, which no longer includes Miniconda in its default setup (actions/runner-images#14226). As a result, all four Linux jobs fail at environment initialization withconda: command not found(e.g. build 66789); the Windows jobs are unaffected.This PR installs Miniforge in the Linux template, under
/usr/share/miniforge3, and uses it in place of the image's Miniconda for every step. Miniforge defaults to conda-forge, which matches the pipeline's existing-c conda-forge -c nodefaults. The Windows template is unchanged.Checklist:
Completeness and readability
Testing
🤖 Generated with Claude Code