Skip to content

Commit 627267a

Browse files
committed
Go modules is on by default since 1.16
1 parent 2b6a56b commit 627267a

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

components/content-service-api/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
GO111MODULE=on go get github.com/golang/protobuf/[email protected]
3+
go get github.com/golang/protobuf/[email protected]
44
protoc -I. --go_out=plugins=grpc:. *.proto
55
mv github.com/gitpod-io/gitpod/content-service/api/* go && rm -rf github.com
66

components/image-builder-api/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
GO111MODULE=on go get github.com/golang/protobuf/[email protected]
3+
go get github.com/golang/protobuf/[email protected]
44
protoc -I. -I.. --go_out=plugins=grpc:. imgbuilder.proto
55
mv github.com/gitpod-io/gitpod/image-builder/api/* go
66
rm -rf github.com
77

8-
GO111MODULE=on go get github.com/golang/mock/mockgen@latest
8+
go get github.com/golang/mock/mockgen@latest
99
cd go
1010
# source mode does not always work for gRPC: see https://github.com/golang/mock/pull/163
1111
mockgen -package mock github.com/gitpod-io/gitpod/image-builder/api ImageBuilderClient,ImageBuilder_BuildClient,ImageBuilder_LogsClient > mock/mock.go

components/registry-facade-api/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
set -e
44

5-
GO111MODULE=on go get github.com/golang/protobuf/[email protected]
5+
go get github.com/golang/protobuf/[email protected]
66
protoc -I. -I../../ --go_out=plugins=grpc:go imagespec.proto
77
protoc -I. -I../../ --go_out=plugins=grpc:go provider.proto

components/supervisor-api/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
PROTOC_INCLUDE="-I. -I $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I /usr/lib/protoc/include"
44

5-
GO111MODULE=on go get github.com/golang/protobuf/protoc-gen-go
6-
GO111MODULE=off go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
5+
go get github.com/golang/protobuf/protoc-gen-go
6+
go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
77
protoc $PROTOC_INCLUDE --go_out=plugins=grpc:go *.proto
88
protoc $PROTOC_INCLUDE --grpc-gateway_out=logtostderr=true,paths=source_relative:go *.proto

components/supervisor-api/typescript-rest/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Licensed under the GNU Affero General Public License (AGPL).
44
# See License-AGPL.txt in the project root for license information.
55

6-
GO111MODULES=off go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
6+
go get -v github.com/grpc-ecosystem/grpc-gateway/protoc-gen-openapiv2
77
THIRD_PARTY_INCLUDES=${PROTOLOC:-..}
88
if [ ! -d $THIRD_PARTY_INCLUDES/third_party/google/api ]; then
99
echo "missing $THIRD_PARTY_INCLUDES/third_party/google/api"
@@ -16,6 +16,6 @@ export PROTO_INCLUDE="-I$THIRD_PARTY_INCLUDES/third_party -I /usr/lib/protoc/inc
1616

1717
protoc $PROTO_INCLUDE --openapiv2_out=logtostderr=true:. -I${PROTOLOC:-..} ${PROTOLOC:-..}/*.proto && \
1818
mv *.swagger.json lib && \
19-
for f in $(ls lib/*.swagger.json); do
19+
for f in $(ls lib/*.swagger.json); do
2020
yarn dtsgen -o ${f%.swagger.json}.dt.ts $f
2121
done

components/ws-daemon-api/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/sh
22

3-
GO111MODULE=on go get github.com/golang/protobuf/[email protected]
3+
go get github.com/golang/protobuf/[email protected]
44
protoc -I. -I.. --go_out=plugins=grpc:. *.proto
55
mv github.com/gitpod-io/gitpod/ws-daemon/api/* go && rm -rf github.com
66

7-
GO111MODULE=on go get github.com/golang/mock/mockgen@latest
7+
go get github.com/golang/mock/mockgen@latest
88
cd go
99
mockgen -package mock -source=daemon.pb.go > mock/mock_wsdaemon.go
1010

components/ws-manager-api/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/sh
22

3-
GO111MODULE=on go get github.com/golang/protobuf/[email protected]
3+
go get github.com/golang/protobuf/[email protected]
44
protoc -I. -I.. --go_out=plugins=grpc:. core.proto
55
mv github.com/gitpod-io/gitpod/ws-manager/api/* go && rm -rf github.com
66

7-
GO111MODULE=on go get github.com/golang/mock/mockgen@latest
7+
go get github.com/golang/mock/mockgen@latest
88
cd go
99
# source mode does not always work for gRPC: see https://github.com/golang/mock/pull/163
1010
mockgen -package mock github.com/gitpod-io/gitpod/ws-manager/api WorkspaceManagerClient,WorkspaceManager_SubscribeClient > mock/mock.go

0 commit comments

Comments
 (0)