-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -241,9 +241,9 @@ code-generator: | |
.PHONY: openapi-gen | ||
openapi-gen: | ||
@GOBIN=$(PROJECT_DIR)/bin GO111MODULE=on $(GO_CMD) install k8s.io/code-generator/cmd/openapi-gen@latest | ||
$(PROJECT_DIR)/bin/openapi-gen --go-header-file hack/boilerplate.go.txt -i sigs.k8s.io/jobset/api/jobset/v1alpha2 -p sigs.k8s.io/jobset/api/jobset/v1alpha2 --alsologtostderr | ||
if [ $(GOPATH)/src/sigs.k8s.io/jobset/api/jobset/v1alpha2/openapi_generated.go != $(PROJECT_DIR)/api/jobset/v1alpha2/openapi_generated.go ]; then \ | ||
mv $(GOPATH)/src/sigs.k8s.io/jobset/api/jobset/v1alpha2/openapi_generated.go $(PROJECT_DIR)/api/jobset/v1alpha2/openapi_generated.go; \ | ||
$(PROJECT_DIR)/bin/openapi-gen --go-header-file hack/boilerplate.go.txt -i sigs.k8s.io/jobset/api/jobset/v1 -p sigs.k8s.io/jobset/api/jobset/v1 --alsologtostderr | ||
if [ $(GOPATH)/src/sigs.k8s.io/jobset/api/jobset/v1/openapi_generated.go != $(PROJECT_DIR)/api/jobset/v1/openapi_generated.go ]; then \ | ||
mv $(GOPATH)/src/sigs.k8s.io/jobset/api/jobset/v1/openapi_generated.go $(PROJECT_DIR)/api/jobset/v1/openapi_generated.go; \ | ||
fi | ||
|
||
.PHONY: envtest | ||
|
@@ -297,4 +297,4 @@ golangci-lint: ## Download golangci-lint locally if necessary. | |
GOTESTSUM = $(shell pwd)/bin/gotestsum | ||
.PHONY: gotestsum | ||
gotestsum: ## Download gotestsum locally if necessary. | ||
@GOBIN=$(PROJECT_DIR)/bin GO111MODULE=on $(GO_CMD) install gotest.tools/[email protected] | ||
@GOBIN=$(PROJECT_DIR)/bin GO111MODULE=on $(GO_CMD) install gotest.tools/[email protected] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.