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

gpg: use with_homebrew_path #3607

Closed
wants to merge 1 commit into from
Closed

gpg: use with_homebrew_path #3607

wants to merge 1 commit into from

Conversation

DomT4
Copy link
Contributor

@DomT4 DomT4 commented Dec 29, 2017

  • 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 successfully run brew tests with your changes locally?

Fixes calling things like Gpg.available? in brew irb, etc. Or anywhere that uses the protected PATH, really.

@MikeMcQuaid
Copy link
Member

This isn't correct behaviour in an install method where it should be doing PATH lookup based on a Requirement or Dependency addition.

@DomT4
Copy link
Contributor Author

DomT4 commented Dec 29, 2017

Sure. I'm open to suggestions that are better than having an audit to bar Gpg. calls inside def install. It seems like brew irb is a perfectly valid place where you'd want to be able to test/use Gpg. stuff though and currently you can't, because brew irb is PATH-shielded under the new ENV filtering.

@ilovezfs
Copy link
Contributor

Can we remove the Gpg module altogether?

Josephs-MacBook-Pro:Formula joe$ ag 'Gpg\.'
duplicity.rb
327:    Gpg.test(testpath) do

rpm.rb
52:    gnupg = Gpg.executable || HOMEBREW_PREFIX/"bin/gpg"

It would take about 5 minutes to remove its use from formulae.

@DomT4
Copy link
Contributor Author

DomT4 commented Dec 29, 2017

It's final broad use wasn't exclusively formula-based, although I appreciate you'd have to have a long memory to remember that by now.

@ilovezfs
Copy link
Contributor

Can you elaborate? I'm not understanding what function it's serving in brew at this point.

@DomT4
Copy link
Contributor Author

DomT4 commented Dec 29, 2017

#786, #676, #675, #674, #386.

@ilovezfs
Copy link
Contributor

OK, thanks. All of those look self-referential as opposed to anything in use currently.

The only actual, current use of gpg appears to be in casks right now with stuff like

gpg "#{url}.asc", key_id: '9032cae4cbfa933a5a2145d5ff97c53f183c045d'

I don't know if that depends on the Gpg module or not. CC @reitermarkus

@DomT4
Copy link
Contributor Author

DomT4 commented Dec 29, 2017

I don't know if that depends on the Gpg module or not.

It doesn't.

All of those look self-referential as opposed to anything in use currently.

Yes, this is correct. A lot of the back & forth over the GPG stuff and the resulting stress over effectively turning Homebrew into a job contributed significantly to my decision to walk away as a maintainer, and indeed more or less stop contributing for a while. But the intention wasn't to abandon it, which is why I've kept trimming & tweaking it since.

@MikeMcQuaid
Copy link
Member

@DomT4 I think it's just worth deprecating at this point I'm afraid as it's not been widely used in formulae. Doing that as part of #3612.

@DomT4 DomT4 deleted the gpg branch December 30, 2017 20:38
@DomT4
Copy link
Contributor Author

DomT4 commented Dec 30, 2017

Alright.

@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants