mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
14 lines
379 B
Ruby
14 lines
379 B
Ruby
require "resource"
|
|
|
|
module Language
|
|
module Go
|
|
# Given a set of resources, stages them to a gopath for
|
|
# building go software.
|
|
# The resource names should be the import name of the package,
|
|
# e.g. `resource "github.com/foo/bar"`
|
|
def self.stage_deps resources, target
|
|
resources.grep(Resource::Go) { |resource| resource.stage(target) }
|
|
end
|
|
end
|
|
end
|