why is bindata.go only huge on push?
MODIFY
samples/gen-go-blog/client/client.go
samples/gen-go-blog/client/client.go
@@ -136,8 +136,8 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
- semconv.ServiceNameKey.String("dapple"),
- semconv.ServiceVersionKey.String("1.11.0"),
+ semconv.ServiceNameKey.String("blog"),
+ semconv.ServiceVersionKey.String("0.1.0"),
),
)
return r

MODIFY
samples/gen-go-blog/client/go.mod
samples/gen-go-blog/client/go.mod
@@ -6,7 +6,7 @@ go 1.16
require (
//removed this because it can never get the right version. Adding with: go get github.com/Clever/dapple/gen-go/models@INFRANG-4918-Testing-nested-modules
// github.com/Clever/wag/samples/v8/gen-go-blog/models v0.0.0
- github.com/Clever/discovery-go v1.7.2
+ github.com/Clever/discovery-go v1.8.1
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
github.com/donovanhide/eventsource v0.0.0-20171031113327-3ed64d21fb0b
)

DELETE
samples/gen-go-blog/server/mock_controller.go
-// Code generated by MockGen. DO NOT EDIT.
-// Source: interface.go
-
-// Package server is a generated GoMock package.
-package server
-
-import (
- context "context"
- reflect "reflect"
-
- models "github.com/Clever/wag/samples/v8/gen-go-blog/models"
- gomock "github.com/golang/mock/gomock"
-)
-
-// MockController is a mock of Controller interface.
-type MockController struct {
- ctrl *gomock.Controller
- recorder *MockControllerMockRecorder
-}
-
-// MockControllerMockRecorder is the mock recorder for MockController.
-type MockControllerMockRecorder struct {
- mock *MockController
-}
-
-// NewMockController creates a new mock instance.
-func NewMockController(ctrl *gomock.Controller) *MockController {
- mock := &MockController{ctrl: ctrl}
- mock.recorder = &MockControllerMockRecorder{mock}
- return mock
-}
-
-// EXPECT returns an object that allows the caller to indicate expected use.
-func (m *MockController) EXPECT() *MockControllerMockRecorder {
- return m.recorder
-}
-
-// GetSectionsForStudent mocks base method.
-func (m *MockController) GetSectionsForStudent(ctx context.Context, studentID string) ([]models.Section, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "GetSectionsForStudent", ctx, studentID)
- ret0, _ := ret[0].([]models.Section)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// GetSectionsForStudent indicates an expected call of GetSectionsForStudent.
-func (mr *MockControllerMockRecorder) GetSectionsForStudent(ctx, studentID interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSectionsForStudent", reflect.TypeOf((*MockController)(nil).GetSectionsForStudent), ctx, studentID)
-}
-
-// PostGradeFileForStudent mocks base method.
-func (m *MockController) PostGradeFileForStudent(ctx context.Context, i *models.PostGradeFileForStudentInput) error {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "PostGradeFileForStudent", ctx, i)
- ret0, _ := ret[0].(error)
- return ret0
-}
-
-// PostGradeFileForStudent indicates an expected call of PostGradeFileForStudent.
-func (mr *MockControllerMockRecorder) PostGradeFileForStudent(ctx, i interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostGradeFileForStudent", reflect.TypeOf((*MockController)(nil).PostGradeFileForStudent), ctx, i)
-}
-
-// PostSectionsForStudent mocks base method.
-func (m *MockController) PostSectionsForStudent(ctx context.Context, i *models.PostSectionsForStudentInput) ([]models.Section, error) {
- m.ctrl.T.Helper()
- ret := m.ctrl.Call(m, "PostSectionsForStudent", ctx, i)
- ret0, _ := ret[0].([]models.Section)
- ret1, _ := ret[1].(error)
- return ret0, ret1
-}
-
-// PostSectionsForStudent indicates an expected call of PostSectionsForStudent.
-func (mr *MockControllerMockRecorder) PostSectionsForStudent(ctx, i interface{}) *gomock.Call {
- mr.mock.ctrl.T.Helper()
- return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PostSectionsForStudent", reflect.TypeOf((*MockController)(nil).PostSectionsForStudent), ctx, i)
-}

MODIFY
samples/gen-go-client-only/client/client.go
samples/gen-go-client-only/client/client.go
@@ -136,8 +136,8 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
- semconv.ServiceNameKey.String("dapple"),
- semconv.ServiceVersionKey.String("1.11.0"),
+ semconv.ServiceNameKey.String("swagger-test"),
+ semconv.ServiceVersionKey.String("0.1.0"),
),
)
return r

MODIFY
samples/gen-go-client-only/client/go.mod
samples/gen-go-client-only/client/go.mod
@@ -6,7 +6,7 @@ go 1.16
require (
//removed this because it can never get the right version. Adding with: go get github.com/Clever/dapple/gen-go/models@INFRANG-4918-Testing-nested-modules
// github.com/Clever/wag/samples/v8/gen-go-client-only/models v0.0.0
- github.com/Clever/discovery-go v1.7.2
+ github.com/Clever/discovery-go v1.8.1
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
github.com/donovanhide/eventsource v0.0.0-20171031113327-3ed64d21fb0b
)

MODIFY
samples/gen-go-db-custom-path/client/client.go
samples/gen-go-db-custom-path/client/client.go
@@ -136,8 +136,8 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
- semconv.ServiceNameKey.String("dapple"),
- semconv.ServiceVersionKey.String("1.11.0"),
+ semconv.ServiceNameKey.String("swagger-test"),
+ semconv.ServiceVersionKey.String("0.1.0"),
),
)
return r

MODIFY
samples/gen-go-db-custom-path/client/go.mod
samples/gen-go-db-custom-path/client/go.mod
@@ -6,7 +6,7 @@ go 1.16
require (
//removed this because it can never get the right version. Adding with: go get github.com/Clever/dapple/gen-go/models@INFRANG-4918-Testing-nested-modules
// github.com/Clever/wag/samples/v8/gen-go-db-custom-path/models v0.0.0
- github.com/Clever/discovery-go v1.7.2
+ github.com/Clever/discovery-go v1.8.1
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
github.com/donovanhide/eventsource v0.0.0-20171031113327-3ed64d21fb0b
)

MODIFY
samples/gen-go-db/client/client.go
samples/gen-go-db/client/client.go
@@ -136,8 +136,8 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
- semconv.ServiceNameKey.String("dapple"),
- semconv.ServiceVersionKey.String("1.11.0"),
+ semconv.ServiceNameKey.String("swagger-test"),
+ semconv.ServiceVersionKey.String("0.1.0"),
),
)
return r

MODIFY
samples/gen-go-db/client/go.mod
samples/gen-go-db/client/go.mod
@@ -6,7 +6,7 @@ go 1.16
require (
//removed this because it can never get the right version. Adding with: go get github.com/Clever/dapple/gen-go/models@INFRANG-4918-Testing-nested-modules
// github.com/Clever/wag/samples/v8/gen-go-db/models v0.0.0
- github.com/Clever/discovery-go v1.7.2
+ github.com/Clever/discovery-go v1.8.1
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5
github.com/donovanhide/eventsource v0.0.0-20171031113327-3ed64d21fb0b
)

MODIFY
samples/gen-go-deprecated/client/client.go
samples/gen-go-deprecated/client/client.go
@@ -136,8 +136,8 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
- semconv.ServiceNameKey.String("dapple"),
- semconv.ServiceVersionKey.String("1.11.0"),
+ semconv.ServiceNameKey.String("swagger-test"),
+ semconv.ServiceVersionKey.String("0.1.0"),
),
)
return r

MODIFY
samples/gen-go-errors/client/client.go
samples/gen-go-errors/client/client.go
@@ -136,8 +136,8 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
- semconv.ServiceNameKey.String("dapple"),
- semconv.ServiceVersionKey.String("1.11.0"),
+ semconv.ServiceNameKey.String("swagger-test"),
+ semconv.ServiceVersionKey.String("0.1.0"),
),
)
return r

MODIFY
samples/gen-go-nils/client/client.go
samples/gen-go-nils/client/client.go
@@ -136,8 +136,8 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
- semconv.ServiceNameKey.String("dapple"),
- semconv.ServiceVersionKey.String("1.11.0"),
+ semconv.ServiceNameKey.String("nil-test"),
+ semconv.ServiceVersionKey.String("0.1.0"),
),
)
return r

ADD
samples/gen-go-nils/server/mock_controller.go
+// Code generated by MockGen. DO NOT EDIT.
+// Source: interface.go
+
+// Package server is a generated GoMock package.
+package server
+
+import (
+ context "context"
+ reflect "reflect"
+
+ models "github.com/Clever/wag/samples/v8/gen-go-nils/models"
+ gomock "github.com/golang/mock/gomock"
+)
+
+// MockController is a mock of Controller interface.
+type MockController struct {
+ ctrl *gomock.Controller
+ recorder *MockControllerMockRecorder
+}
+
+// MockControllerMockRecorder is the mock recorder for MockController.
+type MockControllerMockRecorder struct {
+ mock *MockController
+}
+
+// NewMockController creates a new mock instance.
+func NewMockController(ctrl *gomock.Controller) *MockController {
+ mock := &MockController{ctrl: ctrl}
+ mock.recorder = &MockControllerMockRecorder{mock}
+ return mock
+}
+
+// EXPECT returns an object that allows the caller to indicate expected use.
+func (m *MockController) EXPECT() *MockControllerMockRecorder {
+ return m.recorder
+}
+
+// NilCheck mocks base method.
+func (m *MockController) NilCheck(ctx context.Context, i *models.NilCheckInput) error {
+ m.ctrl.T.Helper()
+ ret := m.ctrl.Call(m, "NilCheck", ctx, i)
+ ret0, _ := ret[0].(error)
+ return ret0
+}
+
+// NilCheck indicates an expected call of NilCheck.
+func (mr *MockControllerMockRecorder) NilCheck(ctx, i interface{}) *gomock.Call {
+ mr.mock.ctrl.T.Helper()
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NilCheck", reflect.TypeOf((*MockController)(nil).NilCheck), ctx, i)
+}

MODIFY
samples/gen-go/client/client.go
samples/gen-go/client/client.go
@@ -136,8 +136,8 @@ func newResource() *resource.Resource {
resource.Default(),
resource.NewWithAttributes(
semconv.SchemaURL,
- semconv.ServiceNameKey.String("dapple"),
- semconv.ServiceVersionKey.String("1.11.0"),
+ semconv.ServiceNameKey.String("swagger-test"),
+ semconv.ServiceVersionKey.String("0.1.0"),
),
)
return r

why is bindata.go only huge on push?