Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource: automatic determine mirrors for glibc-bootstrap and PyPI resources #13875

Merged
merged 3 commits into from Sep 18, 2022

Conversation

XuehaiPan
Copy link
Contributor

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

Alternative to #13868.

Resolves Homebrew/glibc-bootstrap#6
Closes #13868

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

I prefer this approach, nice work!

Library/Homebrew/resource.rb Outdated Show resolved Hide resolved
Library/Homebrew/resource.rb Outdated Show resolved Hide resolved
Library/Homebrew/env_config.rb Outdated Show resolved Hide resolved
Library/Homebrew/resource.rb Outdated Show resolved Hide resolved
@XuehaiPan XuehaiPan force-pushed the resource-url-mirrors-mapping branch 6 times, most recently from 2a2b2a0 to 9b527a4 Compare September 15, 2022 15:16
Library/Homebrew/env_config.rb Outdated Show resolved Hide resolved
Library/Homebrew/env_config.rb Outdated Show resolved Hide resolved
bin/brew Outdated Show resolved Hide resolved
Library/Homebrew/env_config.rb Outdated Show resolved Hide resolved
Library/Homebrew/env_config.rb Outdated Show resolved Hide resolved
Library/Homebrew/resource.rb Outdated Show resolved Hide resolved
Library/Homebrew/resource.rb Outdated Show resolved Hide resolved
Library/Homebrew/test/env_config_spec.rb Outdated Show resolved Hide resolved
bin/brew Outdated Show resolved Hide resolved
@@ -318,6 +318,10 @@ module EnvConfig
"outdated.",
boolean: true,
},
HOMEBREW_PIP_INDEX_URL: {
description: "If set, `brew install <formula>` will use this URL to download PyPI package resources.",
default_text: "`https://pypi.org/simple`.",
Copy link
Contributor Author

@XuehaiPan XuehaiPan Sep 15, 2022

Choose a reason for hiding this comment

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

This would be unset by default and will not be initialized from PIP_INDEX_URL. The user need to set a new Homebrew-specific variable.

https://pypi.org/packages and https://files.pythonhosted.org/packages (this one is what we use in formulae) are mutually identical. We use https://pypi.org/simple (suffix as simple rather than package) in the docs here because https://files.pythonhosted.org/simple is private.

@MikeMcQuaid
Copy link
Member

Thanks again @XuehaiPan!

auto-merge was automatically disabled September 17, 2022 08:40

Head branch was pushed to by a user without write access

@MikeMcQuaid MikeMcQuaid merged commit 8a4826a into Homebrew:master Sep 18, 2022
@MikeMcQuaid
Copy link
Member

Thanks again @XuehaiPan!

@XuehaiPan XuehaiPan deleted the resource-url-mirrors-mapping branch September 18, 2022 12:16
@github-actions github-actions bot added the outdated PR was locked due to age label Oct 19, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Third-party mirroring support
2 participants