From 14342f64726a4dab50233e689704533c5043a3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bot=20of=20Thomas=20G=C3=BCttler?= Date: Sat, 23 May 2026 17:25:08 +0200 Subject: [PATCH] fix: use exact grep patterns for build_runner and flutter pub get (#136) (#159) --- ci/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/main.go b/ci/main.go index db525cf..e3089fc 100644 --- a/ci/main.go +++ b/ci/main.go @@ -221,7 +221,7 @@ func (m *Ci) pubGetLayer() *dagger.Container { WithExec([]string{"/bin/bash", "-c", `tmp=$(mktemp); trap 'rm -f "$tmp"' EXIT; ` + `flutter pub get >"$tmp" 2>&1 || { cat "$tmp"; exit 1; }; ` + - `grep -vE '^[+~><] ' "$tmp" || true`}). + `grep -vE '^(\+|Downloading packages)' "$tmp" || true`}). WithExec([]string{"python3", "-c", "import json, os\n" + "f='.dart_tool/package_config.json'; d=json.load(open(f)); [d.pop(k,None) for k in ('generated','generatorVersion')]; json.dump(d,open(f,'w'))\n" + @@ -245,7 +245,7 @@ func (m *Ci) codegenBase() *dagger.Container { WithExec([]string{"/bin/bash", "-c", `tmp=$(mktemp); trap 'rm -f "$tmp"' EXIT; ` + `flutter pub run build_runner build --delete-conflicting-outputs >"$tmp" 2>&1 || { cat "$tmp"; exit 1; }; ` + - `grep -vE '^\[' "$tmp" || true`}) + `grep -vE '^\[.*s\] \|' "$tmp" || true`}) } // setup overlays platform-specific source files onto the shared codegen base. @@ -411,7 +411,7 @@ func (m *Ci) CheckMocks(ctx context.Context) (string, error) { WithExec([]string{"/bin/bash", "-c", `tmp=$(mktemp); trap 'rm -f "$tmp"' EXIT; ` + `flutter pub run build_runner build --delete-conflicting-outputs >"$tmp" 2>&1 || { cat "$tmp"; exit 1; }; ` + - `grep -vE '^\[' "$tmp" || true`}). + `grep -vE '^\[.*s\] \|' "$tmp" || true`}). WithExec([]string{"/bin/bash", "-c", "CHANGED=$(find . -name '*.mocks.dart' | xargs -r git diff --exit-code); if [ $? -ne 0 ]; then echo \"ERROR: Mocks are out of date\"; exit 1; fi; echo \"Mocks are up to date.\""}). Stdout(ctx) }