From eb8776ab8c60a62be8a0e9ccc16178ec73c5f312 Mon Sep 17 00:00:00 2001 From: Ben Moss Date: Fri, 16 Sep 2022 09:42:40 -0400 Subject: [PATCH] Fix typo in hof.rb `ENG` -> `ENV` --- .hof/shadow/AdhocGen/hof.rb | 4 ++-- hof.rb | 4 ++-- templates/from-git-source.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.hof/shadow/AdhocGen/hof.rb b/.hof/shadow/AdhocGen/hof.rb index bab32ac..276195c 100644 --- a/.hof/shadow/AdhocGen/hof.rb +++ b/.hof/shadow/AdhocGen/hof.rb @@ -18,7 +18,7 @@ def install ldflags = %W[ -s -w -X github.com/hofstadter-io/hof/cmd/hof/verinfo.Version=#{version} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.Commit=#{Utils.git_head} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildDate=#{time.iso8601} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.GoVersion=#{Formula["go"].version} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildOS=#{os} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildArch=#{arch} ] ENV["CGO_ENABLED"] = "0" - ENG["HOF_TELEMETRY_DISABLED"] = 1 + ENV["HOF_TELEMETRY_DISABLED"] = 1 system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/hof" bash_output = Utils.safe_popen_read(bin/"hof", "completion", "bash") @@ -30,7 +30,7 @@ def install end test do - ENG["HOF_TELEMETRY_DISABLED"] = 1 + ENV["HOF_TELEMETRY_DISABLED"] = 1 assert_match "v#{version}", shell_output("#{bin}/hof version") end end diff --git a/hof.rb b/hof.rb index 858367b..6f7e707 100644 --- a/hof.rb +++ b/hof.rb @@ -18,7 +18,7 @@ def install ldflags = %W[ -s -w -X github.com/hofstadter-io/hof/cmd/hof/verinfo.Version=#{version} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.Commit=#{Utils.git_head} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildDate=#{time.iso8601} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.GoVersion=#{Formula["go"].version} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildOS=#{os} -X github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildArch=#{arch} ] ENV["CGO_ENABLED"] = "0" - ENG["HOF_TELEMETRY_DISABLED"] = 1 + ENV["HOF_TELEMETRY_DISABLED"] = 1 system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/hof" bash_output = Utils.safe_popen_read(bin/"hof", "completion", "bash") @@ -30,7 +30,7 @@ def install end test do - ENG["HOF_TELEMETRY_DISABLED"] = 1 + ENV["HOF_TELEMETRY_DISABLED"] = 1 assert_match "v#{version}", shell_output("#{bin}/hof version") system bin/"hof", "mod", "init", "cue", "brew.sh/brewtest" diff --git a/templates/from-git-source.rb b/templates/from-git-source.rb index 7bd6c90..5e47cf0 100644 --- a/templates/from-git-source.rb +++ b/templates/from-git-source.rb @@ -18,7 +18,7 @@ def install ldflags = %W[ {{ .ldflags }} ] ENV["CGO_ENABLED"] = "0" - ENG["{{ upper .name }}_TELEMETRY_DISABLED"] = 1 + ENV["{{ upper .name }}_TELEMETRY_DISABLED"] = 1 system "go", "build", *std_go_args(ldflags: ldflags), "./{{ .cmddir }}" bash_output = Utils.safe_popen_read(bin/"{{ .name }}", "completion", "bash") @@ -30,7 +30,7 @@ def install end test do - ENG["{{ upper .name }}_TELEMETRY_DISABLED"] = 1 + ENV["{{ upper .name }}_TELEMETRY_DISABLED"] = 1 assert_match "v#{version}", shell_output("#{bin}/{{ .name }} version") end end