Skip to content

Commit d2bdfa9

Browse files
easyCZroboquat
authored andcommitted
[public-api] Fix codegen
1 parent 82d7451 commit d2bdfa9

File tree

11 files changed

+36
-27
lines changed

11 files changed

+36
-27
lines changed

components/public-api/go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/gitpod-io/gitpod/public-api-codegen
2+
3+
go 1.18
4+
5+
require google.golang.org/protobuf v1.28.0

components/public-api/go.sum

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
2+
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
3+
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
4+
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
5+
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
6+
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
7+
google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw=
8+
google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=

components/public-api/go/v1/pagination.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/v1/prebuilds.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/v1/prebuilds_grpc.pb.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/v1/workspaces.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/go/v1/workspaces_grpc.pb.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/public-api/tools.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package public_api_codegen
2+
3+
import (
4+
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
5+
_ "google.golang.org/protobuf/runtime/protoimpl"
6+
)

components/public-api/typescript/src/gitpod/v1/pagination_pb.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313

1414
var jspb = require('google-protobuf');
1515
var goog = jspb;
16-
var global = (function() {
17-
if (this) { return this; }
18-
if (typeof window !== 'undefined') { return window; }
19-
if (typeof global !== 'undefined') { return global; }
20-
if (typeof self !== 'undefined') { return self; }
21-
return Function('return this')();
22-
}.call(null));
16+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2317

2418
goog.exportSymbol('proto.gitpod.v1.Pagination', null, global);
2519
/**

components/public-api/typescript/src/gitpod/v1/prebuilds_pb.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313

1414
var jspb = require('google-protobuf');
1515
var goog = jspb;
16-
var global = (function() {
17-
if (this) { return this; }
18-
if (typeof window !== 'undefined') { return window; }
19-
if (typeof global !== 'undefined') { return global; }
20-
if (typeof self !== 'undefined') { return self; }
21-
return Function('return this')();
22-
}.call(null));
16+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2317

2418
var gitpod_v1_workspaces_pb = require('../../gitpod/v1/workspaces_pb.js');
2519
goog.object.extend(proto, gitpod_v1_workspaces_pb);

0 commit comments

Comments
 (0)