Skip to content

Commit

Permalink
framework: enable setting *unset* dep versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hseg committed May 2, 2024
1 parent c5c8b34 commit a4caf65
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ pkgver() {
_bumpVer() {
yq -i --yaml-output --arg pkg "$1" --arg ver "$2" \
"$(cat <<'EOF'
(."extra-deps".[]
| strings
| select(match("^\($pkg)-[0-9.]+")))
|= $pkg + "-" + $ver
."extra-deps"
|= del(.[] | select(match("^\($pkg)-[0-9.]+")))
+ [ "\($pkg)-\($ver)" ]
EOF
)" stack.yaml
}
Expand Down

0 comments on commit a4caf65

Please sign in to comment.