[Bug] short option -a for shovel install broken, long option --arch still works
mrplumber opened this issue · comments
mrplumber commented
- Branch:
main
- Powershell Version:
7.2.1
Bug Report
Current Behavior
shovel install -a 32bit <app>
installs 64bit version of the app which also has 32bit (tested with custom manifest, then with main/dirhash
)
Expected Behavior
shovel install -a 32bit <app>
should install 32bit version of the app (provided app manifest supports it)
Additional context/output
Here is the example output when trying to install 32bit main/dirhash
:
PS C:\>shovel install -a 32bit dirhash
Installing 'dirhash' (1.23.0) [64bit] [main]
WARN By installing you accept following license: BSD-3-Clause (https://spdx.org/licenses/BSD-3-Clause.html)
Loading DirHash-1.23.0-x64.zip from cache
Checking hash of DirHash-1.23.0-x64.zip ... ok.
Extracting DirHash-1.23.0-x64.zip ... done.
Linking ~\scoop\apps\dirhash\current => ~\scoop\apps\dirhash\1.23.0
Creating shim for 'DirHash'.
'dirhash' (1.23.0) was installed successfully!
Output when installing the same app with long option --arch 32bit
:
PS C:\>shovel install --arch 32bit dirhash
Installing 'dirhash' (1.23.0) [32bit] [main]
WARN By installing you accept following license: BSD-3-Clause (https://spdx.org/licenses/BSD-3-Clause.html)
Loading DirHash-1.23.0-x86.zip from cache
Checking hash of DirHash-1.23.0-x86.zip ... ok.
Extracting DirHash-1.23.0-x86.zip ... done.
Linking ~\scoop\apps\dirhash\current => ~\scoop\apps\dirhash\1.23.0
Creating shim for 'DirHash'.
'dirhash' (1.23.0) was installed successfully!