Skip to content

Commit

Permalink
Fix typo in hof.rb
Browse files Browse the repository at this point in the history
`ENG` -> `ENV`
  • Loading branch information
benmoss committed Sep 16, 2022
1 parent 231f20f commit eb8776a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .hof/shadow/AdhocGen/hof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
4 changes: 2 additions & 2 deletions hof.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions templates/from-git-source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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

0 comments on commit eb8776a

Please sign in to comment.