From bf6aafa253d17ded08dfda2957cbd71c8436efa1 Mon Sep 17 00:00:00 2001 From: Gavin Shriver Date: Mon, 5 May 2025 17:56:40 -0700 Subject: [PATCH] updates --- gomonorepo/README.md | 8 ++++---- justfile | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gomonorepo/README.md b/gomonorepo/README.md index 401de95..e82a56b 100644 --- a/gomonorepo/README.md +++ b/gomonorepo/README.md @@ -65,15 +65,15 @@ tidy: _tools-monorepo # Runs `go test --race ` for all modules in the current directory. test: _tools-monorepo - gomonorepo test --parent=main --invocationDir={{ CURRENT_DIR }} + gomonorepo test --parent=origin/main --invocationDir={{ CURRENT_DIR }} # Runs lint/format for all modules in the current directory. lint: _tools-monorepo _tools-linter - gomonorepo lint --parent=main --invocationDir={{ CURRENT_DIR }} + gomonorepo lint --parent=origin/main --invocationDir={{ CURRENT_DIR }} -# Fixes all auto-fixable format and lint errors for all modules in the current directory. +# Fixes all auto-fixable format and lint errors for all modules in the current directory. fix: _tools-monorepo _tools-linter - gomonorepo lint --parent=main -f="--fix" --invocationDir={{ CURRENT_DIR }} + gomonorepo lint --parent=origin/main -f="--fix" --invocationDir={{ CURRENT_DIR }} ``` **Example: Add to CI:** diff --git a/justfile b/justfile index 9f27a9f..4362582 100755 --- a/justfile +++ b/justfile @@ -11,18 +11,18 @@ tidy: _tools-monorepo # Runs `go test --race ` for all modules in the current directory. test: _tools-monorepo - gomonorepo test --parent main --invocationDir={{ CURRENT_DIR }} + gomonorepo test --parent=origin/main --invocationDir={{ CURRENT_DIR }} # Runs lint and test for all modules in the current directory. check: lint test # Runs lint/format for all modules in the current directory. lint: _tools-monorepo _tools-linter - gomonorepo lint --parent main --invocationDir={{ CURRENT_DIR }} + gomonorepo lint --parent=origin/main --invocationDir={{ CURRENT_DIR }} # Fixes all auto-fixable format and lint errors for all modules in the current directory. fix: _tools-monorepo _tools-linter format-md - gomonorepo lint --parent main -f="--fix" --invocationDir={{ CURRENT_DIR }} + gomonorepo lint --parent=origin/main -f="--fix" --invocationDir={{ CURRENT_DIR }} # just --fmt --unstable - Disabled due to combining single lines. @@ -44,7 +44,7 @@ format-md: (_install-go-pkg "github.com/moorereason/mdfmt") # Runs `go generate` on all modules in the current directory. generate: _tools-monorepo _tools-generate - gomonorepo generate --parent main --invocationDir={{ CURRENT_DIR }} + gomonorepo generate --parent=origin/main --invocationDir={{ CURRENT_DIR }} [no-cd] coverage-go: _tools-monorepo