You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
our artifact server (artifactory) does not support the JSON api :(
Rather than patch (or send a PR if wanted) brew to fallback to the simple api, I thought I could get away with adding the internal packages as URL arguments to --extra-packages since the code seems to support this.
What happened (include all command output)?
$ brew update-python-resources Formula/my-formula.rb --verbose --extra-packages "https://a.b.net/.../...0.2.31"
==> Retrieving PyPI dependencies for "<path-to-my-formula-package> https://a-b-net/.../...-0-2-31-tar-gz"...
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x106704810>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': .../...-0-2-31-tar-gz
...-0-2-31-tar-gz (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x106707090>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))
(note that the URL has been munged, changing all . to be -, obviously meaning that the hostname can't be resolved)
I believe you could reproduce this by adding a URL to a package at PyPi.
I am pretty sure that the offending code is [here](https://github.com/Homebrew/brew/blob/9978c3d11ac9108940ee0976a362d0d5872e0916/Library/Homebrew/utils/pypi.rb#L411). I tried changing it to:
if name.start_with?("http")
name
else
name.gsub(/[-_.]+/, "-").downcase
end
and I was able to get farther along in the update (as in, it was able to read the metadata of the URL'd package). However, I will still need to implement the "fallback to simple api".
The text was updated successfully, but these errors were encountered:
Opened #18282 to make it cleaner. Since --extra-packages did do some expected work when I passed a URL, it was unclear if this was a bug or a feature request
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
I'm trying to use
update-python-resources
on an internal library which has internal dependencies. This is proving a pain for two reasons:https://pypi.org/pypi/
Rather than patch (or send a PR if wanted) brew to fallback to the simple api, I thought I could get away with adding the internal packages as URL arguments to
--extra-packages
since the code seems to support this.What happened (include all command output)?
(note that the URL has been munged, changing all
.
to be-
, obviously meaning that the hostname can't be resolved)What did you expect to happen?
I did not expect that error
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: