-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-argo-lint-offline-issue-on-multi-documen…
…ts-yaml-file
- Loading branch information
Showing
377 changed files
with
14,279 additions
and
11,931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ linters: | |
- rowserrcheck | ||
- sqlclosecheck | ||
- staticcheck | ||
- testifylint | ||
- typecheck | ||
- unparam | ||
- unused | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,9 +107,9 @@ ifndef $(GOPATH) | |
endif | ||
|
||
# -- file lists | ||
ARGOEXEC_PKGS := $(shell echo cmd/argoexec && go list -f '{{ join .Deps "\n" }}' ./cmd/argoexec/ | grep 'argoproj/argo-workflows/v3/' | cut -c 39-) | ||
CLI_PKGS := $(shell echo cmd/argo && go list -f '{{ join .Deps "\n" }}' ./cmd/argo/ | grep 'argoproj/argo-workflows/v3/' | cut -c 39-) | ||
CONTROLLER_PKGS := $(shell echo cmd/workflow-controller && go list -f '{{ join .Deps "\n" }}' ./cmd/workflow-controller/ | grep 'argoproj/argo-workflows/v3/' | cut -c 39-) | ||
ARGOEXEC_PKG_FILES := $(shell go list -f '{{ join .Deps "\n" }}' ./cmd/argoexec/ | grep 'argoproj/argo-workflows/v3/' | xargs go list -f '{{ range $$file := .GoFiles }}{{ print $$.ImportPath "/" $$file "\n" }}{{ end }}' | cut -c 39-) | ||
CLI_PKG_FILES := $(shell go list -f '{{ join .Deps "\n" }}' ./cmd/argo/ | grep 'argoproj/argo-workflows/v3/' | xargs go list -f '{{ range $$file := .GoFiles }}{{ print $$.ImportPath "/" $$file "\n" }}{{ end }}' | cut -c 39-) | ||
CONTROLLER_PKG_FILES := $(shell go list -f '{{ join .Deps "\n" }}' ./cmd/workflow-controller/ | grep 'argoproj/argo-workflows/v3/' | xargs go list -f '{{ range $$file := .GoFiles }}{{ print $$.ImportPath "/" $$file "\n" }}{{ end }}' | cut -c 39-) | ||
TYPES := $(shell find pkg/apis/workflow/v1alpha1 -type f -name '*.go' -not -name openapi_generated.go -not -name '*generated*' -not -name '*test.go') | ||
CRDS := $(shell find manifests/base/crds -type f -name 'argoproj.io_*.yaml') | ||
SWAGGER_FILES := pkg/apiclient/_.primary.swagger.json \ | ||
|
@@ -183,16 +183,16 @@ dist/argo-windows-amd64: GOARGS = GOOS=windows GOARCH=amd64 | |
dist/argo-windows-%.gz: dist/argo-windows-% | ||
gzip --force --keep dist/argo-windows-$*.exe | ||
|
||
dist/argo-windows-%: server/static/files.go $(CLI_PKGS) go.sum | ||
dist/argo-windows-%: server/static/files.go $(CLI_PKG_FILES) go.sum | ||
CGO_ENABLED=0 $(GOARGS) go build -v -gcflags '${GCFLAGS}' -ldflags '${LDFLAGS} -extldflags -static' -o $@.exe ./cmd/argo | ||
|
||
dist/argo-%.gz: dist/argo-% | ||
gzip --force --keep dist/argo-$* | ||
|
||
dist/argo-%: server/static/files.go $(CLI_PKGS) go.sum | ||
dist/argo-%: server/static/files.go $(CLI_PKG_FILES) go.sum | ||
CGO_ENABLED=0 $(GOARGS) go build -v -gcflags '${GCFLAGS}' -ldflags '${LDFLAGS} -extldflags -static' -o $@ ./cmd/argo | ||
|
||
dist/argo: server/static/files.go $(CLI_PKGS) go.sum | ||
dist/argo: server/static/files.go $(CLI_PKG_FILES) go.sum | ||
ifeq ($(shell uname -s),Darwin) | ||
# if local, then build fast: use CGO and dynamic-linking | ||
go build -v -gcflags '${GCFLAGS}' -ldflags '${LDFLAGS}' -o $@ ./cmd/argo | ||
|
@@ -210,7 +210,7 @@ clis: dist/argo-linux-amd64.gz dist/argo-linux-arm64.gz dist/argo-linux-ppc64le. | |
.PHONY: controller | ||
controller: dist/workflow-controller | ||
|
||
dist/workflow-controller: $(CONTROLLER_PKGS) go.sum | ||
dist/workflow-controller: $(CONTROLLER_PKG_FILES) go.sum | ||
ifeq ($(shell uname -s),Darwin) | ||
# if local, then build fast: use CGO and dynamic-linking | ||
go build -gcflags '${GCFLAGS}' -v -ldflags '${LDFLAGS}' -o $@ ./cmd/workflow-controller | ||
|
@@ -222,7 +222,7 @@ workflow-controller-image: | |
|
||
# argoexec | ||
|
||
dist/argoexec: $(ARGOEXEC_PKGS) go.sum | ||
dist/argoexec: $(ARGOEXEC_PKG_FILES) go.sum | ||
ifeq ($(shell uname -s),Darwin) | ||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -gcflags '${GCFLAGS}' -v -ldflags '${LDFLAGS} -extldflags -static' -o $@ ./cmd/argoexec | ||
else | ||
|
@@ -283,7 +283,7 @@ swagger: \ | |
$(GOPATH)/bin/mockery: | ||
# update this in Nix when upgrading it here | ||
ifneq ($(USE_NIX), true) | ||
go install github.com/vektra/mockery/[email protected].0 | ||
go install github.com/vektra/mockery/[email protected].2 | ||
endif | ||
$(GOPATH)/bin/controller-gen: | ||
# update this in Nix when upgrading it here | ||
|
@@ -434,7 +434,7 @@ dist/manifests/%: manifests/% | |
# lint/test/etc | ||
|
||
$(GOPATH)/bin/golangci-lint: | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b `go env GOPATH`/bin v1.55.1 | ||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b `go env GOPATH`/bin v1.59.1 | ||
|
||
.PHONY: lint | ||
lint: server/static/files.go $(GOPATH)/bin/golangci-lint | ||
|
@@ -605,6 +605,8 @@ pkg/apis/workflow/v1alpha1/openapi_generated.go: $(GOPATH)/bin/openapi-gen $(TYP | |
--input-dirs github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1 \ | ||
--output-package github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1 \ | ||
--report-filename pkg/apis/api-rules/violation_exceptions.list | ||
# Force the timestamp to be up to date | ||
touch $@ | ||
# Delete the link | ||
[ -e ./v3 ] && rm -rf v3 | ||
|
||
|
@@ -618,6 +620,8 @@ pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go: $(TYPES) | |
github.com/argoproj/argo-workflows/v3/pkg/client github.com/argoproj/argo-workflows/v3/pkg/apis \ | ||
workflow:v1alpha1 \ | ||
--go-header-file ./hack/custom-boilerplate.go.txt | ||
# Force the timestamp to be up to date | ||
touch $@ | ||
# Delete the link | ||
[ -e ./v3 ] && rm -rf v3 | ||
|
||
|
@@ -663,7 +667,7 @@ docs/fields.md: api/openapi-spec/swagger.json $(shell find examples -type f) hac | |
env ARGO_SECURE=false ARGO_INSECURE_SKIP_VERIFY=false ARGO_SERVER= ARGO_INSTANCEID= go run ./hack/docs fields | ||
|
||
# generates several other files | ||
docs/cli/argo.md: $(CLI_PKGS) go.sum server/static/files.go hack/docs/cli.go | ||
docs/cli/argo.md: $(CLI_PKG_FILES) go.sum server/static/files.go hack/docs/cli.go | ||
go run ./hack/docs cli | ||
|
||
# docs | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.