language/go: enable typed: strict
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>
This commit is contained in:
parent
c197b80922
commit
3054b91e80
@ -1,4 +1,4 @@
|
||||
# typed: true
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "resource"
|
||||
@ -12,7 +12,9 @@ module Language
|
||||
# building Go software.
|
||||
# The resource names should be the import name of the package,
|
||||
# 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"
|
||||
if resources.empty?
|
||||
if Homebrew::EnvConfig.developer?
|
||||
odie "Tried to stage empty Language::Go resources array"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user