mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
go_resource deprecation comments
Signed-off-by: Michael Cho <michael@michaelcho.dev>
This commit is contained in:
parent
1f41dff48f
commit
f81dcd8c58
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
@ -138,6 +138,7 @@ class SoftwareSpec
|
||||
end
|
||||
|
||||
def go_resource(name, &block)
|
||||
# odeprecated "SoftwareSpec#go_resource", "Go modules"
|
||||
resource name, Resource::Go, &block
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user