diff --git a/.cspell.json b/.cspell.json index b13fa591f6..c729a0ce06 100644 --- a/.cspell.json +++ b/.cspell.json @@ -36,6 +36,7 @@ "CERTDIR", "certmagic", "charmbracelet", + "checkmake", "cicd", "ciphertext", "Cloudron", diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ec3b53f243..684e3c5e07 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: trailing-whitespace exclude: ^docs/versioned_docs/.+/40-cli.md$ - repo: https://github.com/golangci/golangci-lint - rev: v2.7.2 + rev: v2.8.0 hooks: - id: golangci-lint - repo: https://github.com/igorshubovych/markdownlint-cli @@ -22,7 +22,7 @@ repos: exclude: '^(docs/versioned_docs/.*|CHANGELOG.md)$' language_version: 22.15.1 - repo: https://github.com/mrtazz/checkmake - rev: 0.2.2 + rev: v0.3.2 hooks: - id: checkmake exclude: '^docker/Dockerfile.make$' # actually a Dockerfile and not a makefile @@ -31,11 +31,11 @@ repos: hooks: - id: hadolint - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.7.4 + rev: v3.8.0 hooks: - id: prettier - repo: https://github.com/adrienverge/yamllint.git - rev: v1.37.1 + rev: v1.38.0 hooks: - id: yamllint args: [--strict, -c=.yamllint.yaml] diff --git a/Makefile b/Makefile index 1f74de9da6..6ec044a5bf 100644 --- a/Makefile +++ b/Makefile @@ -162,6 +162,7 @@ install-protoc-gen-go: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest; \ fi +.PHONY: install-tools install-tools: install-golangci-lint install-gofumpt install-addlicense install-mockery install-protoc-gen-go ## Install development tools ui-dependencies: ## Install UI dependencies @@ -233,6 +234,7 @@ build-tarball: ## Build tar archive .PHONY: build build: build-agent build-server build-cli ## Build all binaries +.PHONY: release-frontend release-frontend: build-ui ## Build frontend cross-compile-server: ## Cross compile the server diff --git a/checkmake.ini b/checkmake.ini new file mode 100644 index 0000000000..90fc7b3e20 --- /dev/null +++ b/checkmake.ini @@ -0,0 +1,2 @@ +[maxbodylength] +disabled = true