conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
6k stars 317 forks source link

New 22.11.1-0 .sh installers broken in interactive mode #413

Closed dbast closed 1 year ago

dbast commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

see https://github.com/conda/constructor/issues/635

Installed packages

.

Environment info

.
hmaarrfk commented 1 year ago

operating system? all?

hmaarrfk commented 1 year ago

On linux 64, it gets to:

Transaction finished
installation finished.
Do you wish the installer to initialize Mambaforge
by running conda init? [yes|no]
Mambaforge.sh: line 410: DEFAULT: unbound variable
hmaarrfk commented 1 year ago

I pulled it from the latest release.

hmaarrfk commented 1 year ago

The issue is that DEFAULT is never defined. The logic that sets it can be yes, no or never defined.

hmaarrfk commented 1 year ago

xref: https://github.com/conda/constructor/blob/main/constructor/header.sh#L534

dbast commented 1 year ago

@hmaarrfk Thanks for figuring that all out... It was very late yesterday here, but I still wanted to report it without the time to write all details... though some details have bin in the referenced constructor issue. This PRs should have fully fixed/worked around that now.