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

apply extend/os to migrate_gcc_dependents_if_needed #14437

Conversation

hyuraku
Copy link
Contributor

@hyuraku hyuraku commented Jan 26, 2023

  • 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?

apply extend/os to Homebrew#migrate_gcc_dependents_if_needed because of

# TODO: Refactor and move to extend/os

@@ -0,0 +1,12 @@
# typed: false
Copy link
Member

Choose a reason for hiding this comment

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

Calling this os/mac/cmd/update-report may be better (and same for below file too)

Library/Homebrew/cmd/update-report.rb Show resolved Hide resolved
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.

Thanks again @hyuraku, almost there!

@@ -9,6 +9,7 @@
require "cli/parser"
require "settings"
require "linuxbrew-core-migration"
require "extend/os/update-report"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
require "extend/os/update-report"
require "extend/os/cmd/update-report"

Comment on lines 4 to 8
if OS.mac?
require "extend/os/mac/cmd/update-report"
elsif OS.linux?
require "extend/os/linux/cmd/update-report"
end
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if OS.mac?
require "extend/os/mac/cmd/update-report"
elsif OS.linux?
require "extend/os/linux/cmd/update-report"
end
if OS.linux?
require "extend/os/linux/cmd/update-report"
end

@@ -0,0 +1,12 @@
# typed: false
Copy link
Member

Choose a reason for hiding this comment

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

Can remove this file

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.

Thanks again @hyuraku!

@MikeMcQuaid MikeMcQuaid merged commit 28e1135 into Homebrew:master Feb 2, 2023
@github-actions github-actions bot added the outdated PR was locked due to age label Mar 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2023
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.

None yet

2 participants