Skip to content

Commit c98ee58

Browse files
committed
Fix check-git-dependencies for indented source-repository-package stanzas
The grep and sed patterns were anchored to the start of line (^source-repository-package), but the stanza is now indented inside an `if impl(ghc >= 9.12)` block. Allow leading whitespace so the array marker `-` is correctly inserted into the YAML, preventing the downstream jq parse error.
1 parent 84bce11 commit c98ee58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/bin/check-git-dependencies

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ commits () {
2323
done
2424
}
2525

26-
grep '\(^source-repository-package\|^ *location:\|^ *tag:\)' cabal.project | sed 's|^source-repository-package|-|g' | \
26+
grep '\(^ *source-repository-package\|^ *location:\|^ *tag:\)' cabal.project | sed 's|^ *source-repository-package|-|g' | \
2727
yq eval -P -o=json \
2828
> tmp/repositories.json
2929

0 commit comments

Comments
 (0)