File tree 2 files changed +18
-9
lines changed
2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ export GOPATH=%{gopath}
46
46
export GOBIN= %{gobin }
47
47
export GOCACHE= %{gocache }
48
48
49
+ %if 0%{el7 }
50
+ # EL7 has problems with its git that cause module fetches not to work.
51
+ # Use Golang's proxy to do it instead.
52
+ export GO111MODULE= on
53
+ export GOPROXY= "https://proxy.golang.org"
54
+ %endif
55
+
49
56
go mod init microsoft.com/ethr
50
57
go mod tidy
51
58
go get ./...
Original file line number Diff line number Diff line change @@ -42,15 +42,17 @@ export GOPATH=%{gopath}
42
42
export GOBIN= %{gobin }
43
43
export GOCACHE= %{gocache }
44
44
45
- #doesn't work
46
- #go get ./...
47
-
48
- go get golang.org/x/net/http2
49
- go get code.cloudfoundry.org/bytefmt
50
- go get github.com/aws/aws-sdk-go/aws
51
- go get github.com/aws/aws-sdk-go/aws/credentials
52
- go get github.com/aws/aws-sdk-go/aws/session
53
- go get github.com/aws/aws-sdk-go/service/s3
45
+ %if 0%{el7 }
46
+ # EL7 has problems with its git that cause module fetches not to work.
47
+ # Use Golang's proxy to do it instead.
48
+ export GO111MODULE= on
49
+ export GOPROXY= "https://proxy.golang.org"
50
+ %endif
51
+
52
+ go mod init wasabi.com/s3-benchmark
53
+ go mod tidy
54
+ go get ./...
55
+
54
56
55
57
56
58
%build -n %{directory }
You can’t perform that action at this time.
0 commit comments