Skip to content

miniforge3: add 26.1.0-0#3405

Open
afuetterer wants to merge 1 commit intospack:developfrom
afuetterer:miniforge3-26.1.0-0
Open

miniforge3: add 26.1.0-0#3405
afuetterer wants to merge 1 commit intospack:developfrom
afuetterer:miniforge3-26.1.0-0

Conversation

@afuetterer
Copy link
Copy Markdown
Contributor

This PR adds 26.1.0-0 of miniforge3.

Question: Is the defintion of versions in the dict necessary? miniforge comes via a shell script from GitHub, the exact URL is constructed via url_for_version, e.g.

With this approach there is no way of deprecating older versions, right?

What do you think?

key = f"{platform.system()}-{platform.machine()}"
pkg = packages.get(key)
if pkg:
version(ver, sha256=pkg[0], expand=False)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A way to deprecate could be:

Suggested change
version(ver, sha256=pkg[0], expand=False, deprecated=<some expression>)

The expression imo should be the simplest thing that works, given the deprecation pattern.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion, let me try that.

I think if a version is from 2020 it can be deprecated?
https://github.com/conda-forge/miniforge/releases/tag/4.8.3-4

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like this:

    for _version, packages in _versions.items():
        key = f"{platform.system()}-{platform.machine()}"
        pkg = packages.get(key)
        if pkg:
            major = int(_version.split(".")[0])
            version(_version, sha256=pkg[0], expand=False, deprecated=major<20)

I need some help with the expression here. It works for the given examples, but feels a bit fragile.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how to proceed. Should I close this?

@afuetterer afuetterer force-pushed the miniforge3-26.1.0-0 branch from 24184f7 to 4107983 Compare April 9, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants