Skip to content

link: when refusing to link display keg only caveats instead.#4557

Merged
MikeMcQuaid merged 3 commits intoHomebrew:masterfrom
MikeMcQuaid:no-link-caveats-output
Jul 26, 2018
Merged

link: when refusing to link display keg only caveats instead.#4557
MikeMcQuaid merged 3 commits intoHomebrew:masterfrom
MikeMcQuaid:no-link-caveats-output

Conversation

@MikeMcQuaid
Copy link
Copy Markdown
Member

@MikeMcQuaid MikeMcQuaid commented Jul 26, 2018

These are a bit easier to follow and have been recently improved.

Inspired by conversation in #4441 CC @DomT4 @billinghamj

Also:

  • caveats: tweak keg_only_text

    • make it a public method
    • allow skipping the reason
    • output how to set the various variables in your current shell
  • shell: tweak export_value parameters.

    • Let’s have a default value for shell (considering this isn’t a public API)
      to make it easier to use.
  • 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 tests with your changes locally?


Let’s have a default value for shell (considering this isn’t a public
API) to make it easier to use.
- make it a public method
- allow skipping the reason
- output how to set the various variables in your current shell
These are a bit easier to follow and have been recently improved.

Inspired by conversation in #4441.
@ghost ghost assigned MikeMcQuaid Jul 26, 2018
@ghost ghost added the in progress Maintainers are working on this label Jul 26, 2018
@DomT4
Copy link
Copy Markdown
Contributor

DomT4 commented Jul 26, 2018

Seems to behave as expected for me locally 👍. Thanks for looking at this! Definitely nicer to be able to lean on the caveat mechanism that already exists rather than duplicating the messaging, IMO.

@MikeMcQuaid MikeMcQuaid merged commit 5d4adea into Homebrew:master Jul 26, 2018
@ghost ghost removed the in progress Maintainers are working on this label Jul 26, 2018
@MikeMcQuaid MikeMcQuaid deleted the no-link-caveats-output branch July 26, 2018 14:03
@lock lock bot added the outdated PR was locked due to age label Aug 25, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 25, 2018
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.

2 participants