Skip to content

Commit ffbc6f7

Browse files
fix(ci): generate pubspec_overrides.yaml in lint_flutter to use local runanywhere package
The pubspec_overrides.yaml files are git-ignored (correct for publishing), but CI needs them to resolve the `runanywhere` dependency from the monorepo rather than pulling the stale published version from pub.dev. Generate them at the start of the lint_flutter step before running flutter pub get. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 61d9d76 commit ffbc6f7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/pr-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,18 @@ jobs:
514514
working-directory: sdk/runanywhere-flutter
515515
run: |
516516
set -e
517+
# Generate pubspec_overrides.yaml for each sub-package so that
518+
# `flutter pub get` resolves `runanywhere` from the local monorepo
519+
# instead of the published version on pub.dev (which lags behind).
520+
for pkg in packages/runanywhere_genie packages/runanywhere_llamacpp packages/runanywhere_onnx; do
521+
if [ -f "$pkg/pubspec.yaml" ]; then
522+
cat > "$pkg/pubspec_overrides.yaml" <<'OVERRIDES'
523+
dependency_overrides:
524+
runanywhere:
525+
path: ../runanywhere
526+
OVERRIDES
527+
fi
528+
done
517529
for pkg in packages/runanywhere packages/runanywhere_genie packages/runanywhere_llamacpp packages/runanywhere_onnx; do
518530
if [ -f "$pkg/pubspec.yaml" ]; then
519531
echo "=== Analyzing $pkg ==="

0 commit comments

Comments
 (0)