Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing go 1.16 RC1 #70143

Closed
wants to merge 94 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
2bbcc38
go 1.16
fxcoudert Feb 1, 2021
22dd14e
ahoy: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
0465ce7
akamai: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
356bf40
amazon-ecs-cli: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
ee4ad25
apache-brooklyn-cli: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
83e37a0
aptly: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
86eabc6
assh: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
85596de
bitrise: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
c426244
buildifier: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
2c007eb
buildozer: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
70214f0
caddy: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
d7e0911
carina: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
7ee87f4
cartridge-cli: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
6c4e2b3
ccat: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
7795e41
cf-tool: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
456e266
charm: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
4810fac
charm-tools: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
abc4d1f
collector-sidecar: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
d70ba80
confd: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
0c0f655
cosi: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
4a4d173
cql: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
b0375ae
cwlogs: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
325b336
devd: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
226a4e1
docker-credential-helper: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
5aabcc4
docker-credential-helper-ecr: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
ad47033
docker-gen: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
a6dc412
docker-machine-driver-hyperkit: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
c4275aa
docker-machine-driver-vmware: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
8830a74
docker-machine-driver-vultr: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
0c0d93a
docker-swarm: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
89e59f5
docker2aci: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
71709ce
dockerize: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
f844919
dockviz: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
edd70bc
dockward: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
f4c4839
dvm: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
2562931
emp: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
5ac37a1
envoy: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
5a3e433
flint-checker: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
0577858
fsql: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
dc93b0b
gdm: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
7a8309d
gdrive: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
52eb0fa
git-appraise: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
4c2ac5d
git-sizer: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
2e24ea1
github-release: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
5c2a446
gollum: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
656a3f4
gotags: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
8360404
gx-go: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
a391fc9
hivemind: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
de3eeb9
httpdiff: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
e875bc8
ioctl: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
e6cbb6b
ironcli: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
e1f37cf
jabba: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
b08da8a
jp: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
4736224
jsonpp: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
898fb25
kamel: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
eb47e73
kedge: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
9607f8f
ksync: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
bb5dad0
launch_socket_server: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
e1ef137
leaps: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
c041ff1
lunchy-go: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
c15effe
mailhog: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
e332871
massren: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
ce2f5ec
microplane: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
6733414
modd: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
982b65c
mpdviz: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
80bc1e6
path-extractor: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
2f3f2f1
pgweb: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
d00e762
piknik: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
6459794
pup: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
c13e5c9
qpm: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
3b8cfb2
rack: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
1134e57
rancher-compose: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
bba9e74
rke: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
090ce51
s-search: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
9e97d11
scc: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
2ac050a
shellz: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
8ac8ab2
ship: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
34462ad
sift: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
4175154
snag: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
d253f4a
snap-telemetry: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
d98af10
spaceinvaders-go: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
2b65d19
ssh-vault: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
cfd5d66
stout: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
3554157
sync_gateway: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
518e358
td: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
f92bc05
teleconsole: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
7fa9327
termshare: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
9e8c25f
terraform-inventory: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
e953a8c
textql: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
8e519de
traefik@1: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
4bf3757
uru: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
c0710d4
vert: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
e402545
vultr: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
9d067bf
wego: add GO111MODULE for go1.16
fxcoudert Feb 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
1 change: 1 addition & 0 deletions Formula/ahoy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Ahoy < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
bin_path = buildpath/"src/github.com/ahoy-cli/ahoy"
bin_path.install Dir["*"]
Expand Down
1 change: 1 addition & 0 deletions Formula/akamai.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Akamai < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
ENV["GLIDE_HOME"] = HOMEBREW_CACHE/"glide_home/#{name}"

Expand Down
1 change: 1 addition & 0 deletions Formula/amazon-ecs-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class AmazonEcsCli < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/aws/amazon-ecs-cli").install buildpath.children
cd "src/github.com/aws/amazon-ecs-cli" do
Expand Down
1 change: 1 addition & 0 deletions Formula/apache-brooklyn-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ApacheBrooklynCli < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/apache/brooklyn-client").install "cli"
cd "src/github.com/apache/brooklyn-client/cli" do
Expand Down
1 change: 1 addition & 0 deletions Formula/aptly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Aptly < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
ENV["GOBIN"] = bin
(buildpath/"src/github.com/aptly-dev/aptly").install buildpath.children
Expand Down
1 change: 1 addition & 0 deletions Formula/assh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Assh < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
system "go", "build", *std_go_args, "-ldflags", "-s -w"
end

Expand Down
1 change: 1 addition & 0 deletions Formula/bitrise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Bitrise < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath

# Install bitrise
Expand Down
1 change: 1 addition & 0 deletions Formula/buildifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Buildifier < Formula
depends_on "bazelisk" => :build

def install
ENV["GO111MODULE"] = "auto"
system "bazelisk", "build", "--config=release", "buildifier:buildifier"
bin.install "bazel-bin/buildifier/darwin_amd64_stripped/buildifier"
end
Expand Down
1 change: 1 addition & 0 deletions Formula/buildozer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Buildozer < Formula
depends_on "bazelisk" => :build

def install
ENV["GO111MODULE"] = "auto"
system "bazelisk", "build", "--config=release", "buildozer:buildozer"
bin.install "bazel-bin/buildozer/darwin_amd64_stripped/buildozer"
end
Expand Down
1 change: 1 addition & 0 deletions Formula/caddy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Caddy < Formula
end

def install
ENV["GO111MODULE"] = "auto"
revision = build.head? ? version.commit : "v#{version}"

resource("xcaddy").stage do
Expand Down
1 change: 1 addition & 0 deletions Formula/carina.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Carina < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
ENV.prepend_create_path "PATH", buildpath/"bin"

Expand Down
1 change: 1 addition & 0 deletions Formula/cartridge-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class CartridgeCli < Formula
depends_on "mage" => :build

def install
ENV["GO111MODULE"] = "auto"
system "mage", "build"
bin.install "cartridge"
system bin/"cartridge", "gen", "completion"
Expand Down
1 change: 1 addition & 0 deletions Formula/ccat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Ccat < Formula
conflicts_with "ccrypt", because: "both install `ccat` binaries"

def install
ENV["GO111MODULE"] = "auto"
system "./script/build"
bin.install "ccat"
end
Expand Down
1 change: 1 addition & 0 deletions Formula/cf-tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class CfTool < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/xalanq/cf-tool").install buildpath.children
cd "src/github.com/xalanq/cf-tool" do
Expand Down
1 change: 1 addition & 0 deletions Formula/charm-tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ class CharmTools < Formula
end

def install
ENV["GO111MODULE"] = "auto"
virtualenv_install_with_resources
end

Expand Down
1 change: 1 addition & 0 deletions Formula/charm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Charm < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
system "go", "build", *std_go_args, "./cmd/charm"
end

Expand Down
1 change: 1 addition & 0 deletions Formula/collector-sidecar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class CollectorSidecar < Formula
depends_on "filebeat"

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
ENV["GLIDE_HOME"] = HOMEBREW_CACHE/"glide_home/#{name}"
(buildpath/"src/github.com/Graylog2/collector-sidecar").install buildpath.children
Expand Down
1 change: 1 addition & 0 deletions Formula/confd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Confd < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/kelseyhightower/confd").install buildpath.children
cd "src/github.com/kelseyhightower/confd" do
Expand Down
1 change: 1 addition & 0 deletions Formula/cosi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Cosi < Formula
end

def install
ENV["GO111MODULE"] = "auto"
mkdir_p buildpath/"src/github.com/dedis"
ln_s buildpath, buildpath/"src/github.com/dedis/cosi"

Expand Down
1 change: 1 addition & 0 deletions Formula/cql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Cql < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
ENV["CQLVERSION"] = "v#{version}"
ENV["CGO_ENABLED"] = "1"
Expand Down
1 change: 1 addition & 0 deletions Formula/cwlogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Cwlogs < Formula
depends_on "govendor" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
ENV["CGO_ENABLED"] = "0"

Expand Down
1 change: 1 addition & 0 deletions Formula/devd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Devd < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/cortesi/devd").install buildpath.children
cd "src/github.com/cortesi/devd" do
Expand Down
1 change: 1 addition & 0 deletions Formula/docker-credential-helper-ecr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class DockerCredentialHelperEcr < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/awslabs/amazon-ecr-credential-helper"
dir.install buildpath.children - [buildpath/".brew_home"]
Expand Down
1 change: 1 addition & 0 deletions Formula/docker-credential-helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class DockerCredentialHelper < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
dir = buildpath/"src/github.com/docker/docker-credential-helpers"
dir.install buildpath.children - [buildpath/".brew_home"]
Expand Down
1 change: 1 addition & 0 deletions Formula/docker-gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class DockerGen < Formula
end

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/jwilder/docker-gen").install buildpath.children
Language::Go.stage_deps resources, buildpath/"src"
Expand Down
1 change: 1 addition & 0 deletions Formula/docker-machine-driver-hyperkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class DockerMachineDriverHyperkit < Formula
depends_on "docker-machine"

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath

dir = buildpath/"src/github.com/machine-drivers/docker-machine-driver-hyperkit"
Expand Down
1 change: 1 addition & 0 deletions Formula/docker-machine-driver-vmware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class DockerMachineDriverVmware < Formula
depends_on "docker-machine"

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath

dir = buildpath/"src/github.com/machine-drivers/docker-machine-driver-vmware"
Expand Down
1 change: 1 addition & 0 deletions Formula/docker-machine-driver-vultr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class DockerMachineDriverVultr < Formula
depends_on "docker-machine"

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/janeczku/docker-machine-vultr").install buildpath.children

Expand Down
1 change: 1 addition & 0 deletions Formula/docker-swarm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class DockerSwarm < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/docker/swarm").install buildpath.children
cd "src/github.com/docker/swarm" do
Expand Down
1 change: 1 addition & 0 deletions Formula/docker2aci.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Docker2aci < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/appc").mkpath
ln_s buildpath, buildpath/"src/github.com/appc/docker2aci"
Expand Down
1 change: 1 addition & 0 deletions Formula/dockerize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Dockerize < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/jwilder/dockerize").install buildpath.children
ENV.append_path "PATH", buildpath/"bin"
Expand Down
1 change: 1 addition & 0 deletions Formula/dockviz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Dockviz < Formula
depends_on "govendor" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/justone/dockviz").install buildpath.children
cd "src/github.com/justone/dockviz" do
Expand Down
1 change: 1 addition & 0 deletions Formula/dockward.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class Dockward < Formula
end

def install
ENV["GO111MODULE"] = "auto"
ENV["GOBIN"] = bin
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/abiosoft").mkpath
Expand Down
1 change: 1 addition & 0 deletions Formula/dvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Dvm < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath

(buildpath/"src/github.com/howtowhale/dvm").install buildpath.children
Expand Down
1 change: 1 addition & 0 deletions Formula/emp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Emp < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath

(buildpath/"src/github.com/remind101/").mkpath
Expand Down
1 change: 1 addition & 0 deletions Formula/envoy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Envoy < Formula
depends_on "ninja" => :build

def install
ENV["GO111MODULE"] = "auto"
args = %w[
--curses=no
--show_task_finish
Expand Down
1 change: 1 addition & 0 deletions Formula/flint-checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class FlintChecker < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/pengwynn").mkpath
ln_sf buildpath, buildpath/"src/github.com/pengwynn/flint"
Expand Down
1 change: 1 addition & 0 deletions Formula/fsql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Fsql < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/kshvmdn/fsql").install buildpath.children
system "go", "build", "-o", bin/"fsql", "github.com/kshvmdn/fsql/cmd/fsql"
Expand Down
1 change: 1 addition & 0 deletions Formula/gdm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Gdm < Formula
end

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
mkdir_p buildpath/"src/github.com/sparrc"
ln_sf buildpath, buildpath/"src/github.com/sparrc/gdm"
Expand Down
1 change: 1 addition & 0 deletions Formula/gdrive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Gdrive < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath

dir = buildpath/"src/github.com/prasmussen/gdrive"
Expand Down
1 change: 1 addition & 0 deletions Formula/git-appraise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class GitAppraise < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath

(buildpath/"src/github.com/google").mkpath
Expand Down
1 change: 1 addition & 0 deletions Formula/git-sizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class GitSizer < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/github/git-sizer").install buildpath.children
cd "src/github.com/github/git-sizer" do
Expand Down
1 change: 1 addition & 0 deletions Formula/github-release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class GithubRelease < Formula
depends_on "go" => :build

def install
ENV["GO111MODULE"] = "auto"
ENV["GOPATH"] = buildpath
system "make"
bin.install "github-release"
Expand Down
31 changes: 5 additions & 26 deletions Formula/go.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,15 @@ class Go < Formula
desc "Open source programming language to build simple/reliable/efficient software"
homepage "https://golang.org"
license "BSD-3-Clause"
revision 1

stable do
if Hardware::CPU.arm?
url "https://golang.org/dl/go1.16rc1.src.tar.gz"
sha256 "6a33569f9d0d21db31614086cc2a4f0fbc683b41c1c53fb512a1341ce5763ff5"
version "1.15.7"
else
url "https://golang.org/dl/go1.15.7.src.tar.gz"
mirror "https://fossies.org/linux/misc/go1.15.7.src.tar.gz"
sha256 "8631b3aafd8ecb9244ec2ffb8a2a8b4983cf4ad15572b9801f7c5b167c1a2abc"
end
url "https://golang.org/dl/go1.16rc1.src.tar.gz"
sha256 "6a33569f9d0d21db31614086cc2a4f0fbc683b41c1c53fb512a1341ce5763ff5"

go_version = version.major_minor
resource "gotools" do
url "https://go.googlesource.com/tools.git",
branch: "release-branch.go#{go_version}"
# url "https://go.googlesource.com/tools.git",
# branch: "release-branch.go#{version.major_minor}"
url "https://go.googlesource.com/tools.git"
end
end

Expand Down Expand Up @@ -87,19 +79,6 @@ def install
bin.install_symlink libexec/"bin/godoc"
end

def caveats
s = ""

if Hardware::CPU.arm?
s += <<~EOS
This is a release candidate version of the Go compiler for Apple Silicon
(Go 1.16rc1).
EOS
end

s
end

test do
(testpath/"hello.go").write <<~EOS
package main
Expand Down
Loading