go_resource deprecation comments

Signed-off-by: Michael Cho <michael@michaelcho.dev>
This commit is contained in:
Michael Cho 2024-04-01 09:00:32 -04:00
parent 1f41dff48f
commit f81dcd8c58
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85
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