Skip to content

Commit 9ce7380

Browse files
committed
fix(mise-tasks): forward command-line arguments to package managers
Update install.sh and upgrade.sh scripts to properly handle and forward any additional command-line arguments to the underlying package manager commands (pixi/uv). This ensures that users can pass extra flags like --frozen or other options to the package managers when running these tasks.
1 parent 847d2ba commit 9ce7380

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

template/.config/copier/mise-tasks/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ function has() {
1212
if [[ -f 'pixi.lock' ]]; then
1313
pixi='pixi'
1414
if has pixi-wrapper.sh; then pixi='pixi-wrapper.sh'; fi
15-
"$pixi" install
15+
"$pixi" install "$@"
1616
fi
1717

1818
if [[ -f 'uv.lock' ]]; then
1919
uv='uv'
2020
if has uv-wrapper.sh; then uv='uv-wrapper.sh'; fi
21-
"$uv" sync --all-extras --all-groups
21+
"$uv" sync --all-extras --all-groups "$@"
2222
fi

template/.config/copier/mise-tasks/upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ function has() {
1313
if [[ -f 'pixi.lock' ]]; then
1414
pixi='pixi'
1515
if has pixi-wrapper.sh; then pixi='pixi-wrapper.sh'; fi
16-
"$pixi" upgrade
16+
"$pixi" upgrade "$@"
1717
fi
1818

1919
if [[ -f 'uv.lock' ]]; then
2020
uv='uv'
2121
if has uv-wrapper.sh; then uv='uv-wrapper.sh'; fi
22-
"$uv" sync --upgrade
22+
"$uv" sync --upgrade "$@"
2323
fi

0 commit comments

Comments
 (0)