diff --git a/.devcontainer.json b/.devcontainer.json index 08c198d..06ced1e 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -30,6 +30,7 @@ ], "name": "go-subtree dev container", "postCreateCommand": "magex lint && magex vet && magex test", + "postStartCommand": "go install github.com/magefile/mage/cmd/magex@latest", "remoteUser": "vscode", "runArgs": [ "--cap-drop=ALL", diff --git a/.github/.env.base b/.github/.env.base index 1e2ae67..01d60c2 100644 --- a/.github/.env.base +++ b/.github/.env.base @@ -110,7 +110,7 @@ ARTIFACT_DOWNLOAD_CONTINUE_ON_ERROR=false # Continue workflow execution even i BENCHMARK_TIMEOUT=20 # Benchmark mode (Options: quick, full, normal) -BENCHMARK_MODE=quick +BENCHMARK_MODE=quick # Test Execution Timeouts TEST_TIMEOUT=30m # Go test timeout for standard tests @@ -225,7 +225,7 @@ REDIS_CACHE_FORCE_PULL=false # Force pull Redis images even when cache # 🪄 MAGE-X CONFIGURATION # ================================================================================================ -MAGE_X_VERSION=v1.7.5 # https://github.com/mrz1836/mage-x/releases +MAGE_X_VERSION=v1.7.6 # https://github.com/mrz1836/mage-x/releases MAGE_X_AUTO_DISCOVER_BUILD_TAGS=true # Enable auto-discovery of build tags MAGE_X_AUTO_DISCOVER_BUILD_TAGS_EXCLUDE=race,custom # Comma-separated list of tags to exclude MAGE_X_FORMAT_EXCLUDE_PATHS=vendor,node_modules,.git,.idea # Format exclusion paths (comma-separated directories to exclude from formatting) @@ -289,7 +289,7 @@ NANCY_VERSION=v1.0.51 # https://github.com/sonatype-nexus-commu # ================================================================================================ # Pre-Commit System -GO_PRE_COMMIT_VERSION=v1.3.2 # https://github.com/mrz1836/go-pre-commit +GO_PRE_COMMIT_VERSION=v1.3.4 # https://github.com/mrz1836/go-pre-commit GO_PRE_COMMIT_USE_LOCAL=false # Use local version for development # System Settings diff --git a/.gitpod.yml b/.gitpod.yml index 544e368..90be1db 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -28,7 +28,7 @@ tasks: echo "🛠️ Available magex commands:" echo " magex test - Run all tests" echo " magex lint - Run linters" - echo " magex format:fix - Format code" + echo " magex format:fix - Format the code" echo " magex build - Build the project" echo " magex help - List all available commands" echo "" diff --git a/.goreleaser.yml b/.goreleaser.yml index 476cc69..9d601dc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -6,7 +6,14 @@ version: 2 before: hooks: - - sh -c 'if [ "$SKIP_GORELEASER_TESTS" = "true" ]; then echo "Skipping tests (SKIP_GORELEASER_TESTS=true)"; else magex test; fi' + - | + sh -c ' + if [ "$SKIP_GORELEASER_TESTS" = "true" ]; then + echo "Skipping tests (SKIP_GORELEASER_TESTS=true)" + else + magex test + fi + ' changelog: sort: asc filters: diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3c32a19..8e71217 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -526,7 +526,7 @@ "command": "go-pre-commit install", "detail": "Install go-pre-commit hooks", "group": "none", - "label": "pre-commit: install", + "label": "go-pre-commit: install", "presentation": { "clear": true, "focus": false, @@ -540,7 +540,7 @@ "command": "go-pre-commit run --all-files", "detail": "Run pre-commit hooks on all files", "group": "none", - "label": "pre-commit: run", + "label": "go-pre-commit: run", "presentation": { "clear": true, "focus": false,