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
bintray: fix package creation #7415
Conversation
baf4ed3
to
807843d
Compare
807843d
to
bd24f5a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When did this break? Was it a particular PR or a change on Bintray's/our side? Thanks!
stderr = e.output.select { |type,| type == :stderr } | ||
.map { |_, line| line } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stderr = e.output.select { |type,| type == :stderr } | |
.map { |_, line| line } | |
stderr = e.output | |
.select { |type,| type == :stderr } | |
.map { |_, line| line } |
or, if it works:
stderr = e.output.select { |type,| type == :stderr } | |
.map { |_, line| line } | |
stderr = e.output | |
.select { |type,| type == :stderr } | |
.values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second option won't work because .select { |type,| type == :stderr }
returns an array.
Will create a PR with the first one
I think we have never used API for package creation since it was added in #7236 Line 116 always raises an exception because brew/Library/Homebrew/bintray.rb Lines 115 to 119 in 1147106
|
Gotcha so basically: no-one has used |
No-one has used |
Thanks @bayandin! |
Thanks @MikeMcQuaid! But I didn't have a chance to apply your suggestions 🙄 |
People have, but it turns out it doesn't fail Volta worked fine (done via |
Oops, sorry, misread this. What do you think of them? |
Interestingly, this doesn't work in the CI: https://github.com/Homebrew/homebrew-core/runs/618091933?check_suite_focus=true Yet, I run Judging by the "Linuxbrew/2.2.13-138-gd5ab653", it seems to be the latest version so isn't an update issue. |
Hmm, interesting. Can it be related to the curl version that we use? It seems it is |
Ok so it fails to properly check if a package exists when you have the The logic here relies on
|
Yup, have found it as well, as was surprised too 😄 #7435 will fix it for now |
brew style
with your changes locally?brew tests
with your changes locally?This PR fixes bintray package creation.
Also, it changes
::package_exists?
to return boolean value instead ofSystemCommand
instanceRef: Homebrew/homebrew-core#53304 (comment)