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

language/*: enable typed: strict #16971

Merged
merged 5 commits into from
Apr 1, 2024
Merged

Conversation

cho-m
Copy link
Member

@cho-m cho-m commented Mar 29, 2024

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

cho-m added 4 commits March 29, 2024 18:22
Also add comment to odeprecate in future. In homebrew/core, only
usage is in deprecated/disabled formulae.

Signed-off-by: Michael Cho <michael@michaelcho.dev>
Signed-off-by: Michael Cho <michael@michaelcho.dev>
Signed-off-by: Michael Cho <michael@michaelcho.dev>
Signed-off-by: Michael Cho <michael@michaelcho.dev>
def self.stage_deps(resources, target)
# odeprecated "Language::Go::stage_deps", "or request upstream to migrate to Go modules"
Copy link
Member

Choose a reason for hiding this comment

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

Is it worth saying this is a future intended deprecation (in a comment above) otherwise it might be confusing for people combing through deprecations.

Copy link
Member

Choose a reason for hiding this comment

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

@issyl0 This is how we normally handle "deprecate this next major/minor release" deprecations.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, thanks for the clarification!

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we can reword this somehow? Otherwise we end up with

use or request upstream to migrate to Go modules instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was originally either going to leave it empty or thinking of just Go modules (i.e. use Go modules instead)

I partly mixed in another related message from:

problem "`go_resource`s are deprecated. Please ask upstream to implement Go vendoring"

Copy link
Member Author

@cho-m cho-m Apr 1, 2024

Choose a reason for hiding this comment

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

I can do any extra updates to deprecation message in a separate PR and also add comment for go_resources. May just go with something like:

Suggested change
# odeprecated "Language::Go::stage_deps", "or request upstream to migrate to Go modules"
# odeprecated "Language::Go::stage_deps", "Go modules"

In case of existing message, as I understand, vendoring would also refer to older solution with vendor directory and GOPATH, which we are also trying to get rid of.

Copy link
Member Author

@cho-m cho-m Apr 1, 2024

Choose a reason for hiding this comment

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

I guess another option is to recommend: Language::Go::stage_deps --> resources.each { |r| (target/r.name).install r} and go_resource --> resource. Though, this means the formula is still using an old approach.

I have used these to get rid of all usage of go_resources in Homebrew/core.

def self.stage_deps(resources, target)
# odeprecated "Language::Go::stage_deps", "or request upstream to migrate to Go modules"
Copy link
Member

Choose a reason for hiding this comment

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

@issyl0 This is how we normally handle "deprecate this next major/minor release" deprecations.

@MikeMcQuaid
Copy link
Member

Looks good, thanks again @cho-m!

Co-authored-by: Markus Reiter <me@reitermark.us>
@MikeMcQuaid MikeMcQuaid enabled auto-merge April 1, 2024 07:10
@MikeMcQuaid MikeMcQuaid merged commit 1f41dff into Homebrew:master Apr 1, 2024
25 checks passed
@cho-m cho-m deleted the language-types branch April 1, 2024 12:52
@cho-m cho-m mentioned this pull request Apr 1, 2024
7 tasks
@github-actions github-actions bot added the outdated PR was locked due to age label May 2, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2024
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.

4 participants