snap-telemetry: fix build with go 1.16 and deprecate (#71663)

master
Bo Anderson 2021-02-21 19:23:47 +00:00 committed by GitHub
parent 0e44f4d54a
commit a244ba904b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,9 @@ class SnapTelemetry < Formula
sha256 cellar: :any_skip_relocation, el_capitan: "50ce1be7d6e83f309d8fd62bf2b36cb03c29b726d575abfbeef895b3f628fb46"
end
# https://github.com/intelsdi-x/snap/commit/e3a6c8e39994b3980df0c7b069d5ede810622952
deprecate! date: "2018-12-20", because: :deprecated_upstream
depends_on "glide" => :build
depends_on "go" => :build
@ -22,6 +25,7 @@ class SnapTelemetry < Formula
ENV["GOPATH"] = buildpath
ENV["CGO_ENABLED"] = "0"
ENV["GLIDE_HOME"] = HOMEBREW_CACHE/"glide_home/#{name}"
ENV["GO111MODULE"] = "auto"
snapteld = buildpath/"src/github.com/intelsdi-x/snap"
snapteld.install buildpath.children