Merge pull request #16991 from cho-m/go_resource-deprecate

go_resource deprecation comments
This commit is contained in:
Mike McQuaid 2024-04-01 14:43:51 +01:00 committed by GitHub
commit 06f3bd9d51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -3324,6 +3324,7 @@ class Formula
end
def go_resource(name, &block)
# odeprecated "Formula#go_resource", "Go modules"
specs.each { |spec| spec.go_resource(name, &block) }
end

View File

@ -14,7 +14,7 @@ module Language
# e.g. `resource "github.com/foo/bar"`.
sig { params(resources: T::Array[Resource], target: T.any(String, Pathname)).void }
def self.stage_deps(resources, target)
# odeprecated "Language::Go::stage_deps", "or request upstream to migrate to Go modules"
# odeprecated "Language::Go::stage_deps", "Go modules"
if resources.empty?
if Homebrew::EnvConfig.developer?
odie "Tried to stage empty Language::Go resources array"

View File

@ -138,6 +138,7 @@ class SoftwareSpec
end
def go_resource(name, &block)
# odeprecated "SoftwareSpec#go_resource", "Go modules"
resource name, Resource::Go, &block
end