Skip to content

Commit

Permalink
fix the openapi gen - just need to run it with make codegen, not on i…
Browse files Browse the repository at this point in the history
…ts own.
  • Loading branch information
meeech committed Sep 12, 2023
1 parent 32237b1 commit 9701e9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DEV_IMAGE ?= false

# E2E variables
E2E_INSTANCE_ID ?= argo-rollouts-e2e
E2E_TEST_OPTIONS ?=
E2E_TEST_OPTIONS ?=
E2E_PARALLEL ?= 1
E2E_WAIT_TIMEOUT ?= 120
GOPATH ?= $(shell go env GOPATH)
Expand Down Expand Up @@ -149,10 +149,10 @@ gen-mocks: install-go-tools-local ## generate mock files
# generates openapi_generated.go
.PHONY: gen-openapi
gen-openapi: $(DIST_DIR)/openapi-gen ## generate openapi files
PATH=${DIST_DIR}:$$PATH openapi-gen \
PATH=${DIST_DIR}:$$PATH GOPATH=${GOPATH} openapi-gen \
--go-header-file ${CURRENT_DIR}/hack/custom-boilerplate.go.txt \
--input-dirs github.com/argoproj/argo-rollouts/pkg/apis/rollouts/v1alpha1 \
--output-package pkg/apis/rollouts/v1alpha1 \
--output-package github.com/argoproj/argo-rollouts/pkg/apis/rollouts/v1alpha1 \
--report-filename pkg/apis/api-rules/violation_exceptions.list

##@ Plugins
Expand Down

0 comments on commit 9701e9e

Please sign in to comment.