-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Package Issue]: MSYS2.MSYS2 #127282
Comments
Right I tried to prevent it from being updated by WinGet by setting |
Just ran into this myself. Is exit code 1 unique to the "the directory already exists and contains an installation" error? I wonder if the
|
No. The exit code 1 indicates a general installation failure instead of a specific one, according to the manual of Qt Installer Framework, the installer technology used by MSYS2 installer. There is no switch to force the Qt Installer Framework installer to log into a specific file so WinGet doesn't know where the installer log to, and currently WinGet doesn't support capture the console output from the installer. |
I think MSYS2 does not need upgrades as an installer. You can upgrade it via So does it mean we don't need this as a winget application? |
This confirms winget is unnecessary for this package: |
You can still do first-time install, or even install another copy of MSYS2 in a different directory if needed. 🤔 |
Then you have a nagging winget upgrade notifier in your hand, which doesn't work. |
Not THEN. WinGet will always notify you as long as it detects a copy of MSYS2 from the registry. I am thinking about modifying the package so it can still install new copies but never detect and update them. Currently I am using (AFAIK the counterpart on Chocolatey upgrades by invoking pacman directly, which can not be implemented here at the moment) |
You can also install/extract MSYS2 from tar file. |
Currently WinGet doesn't support extracting tar file (as it doesn't rely on 7z for extracting archives). See microsoft/winget-cli#2899 The counterpart on Scoop installs in this way though but I don't know how they tackle the upgrading issue as it persists only the home directory. |
When we have the 1.6.0 schema out, maybe |
any update? |
Just got this issue. It should be mentioned that using |
I managed to pin the current installed version with: # winget pin add -q 'MSYS2.MSYS2'
Found MSYS2 Installer [MSYS2.MSYS2]
Pin added successfully |
Upgrade behavior has been set to deny, and this package requires explicit upgrade. Therefore, it should be skipped by Close with reason: Completed; |
Please confirm these before moving forward
Category of the issue
Installation issue.
Brief description of your issue
Upgrade from 20230718 to 20231026 fails silently with exit code 1.
Is MSYS2 not meant to be upgraded in this way, since it has an internal pacman-based updater?
Steps to reproduce
Install 20230718. Attempt to upgrade to 20231026.
Actual behavior
Upgrade fails with exit code 1 and no additional info.
Expected behavior
Successful update, or not listed as an available update if this is not a supported means of updating an existing MSYS2 installation.
Environment
Screenshots and Logs
InstallationLog.txt says:
TargetDirectoryInUse : Error : The directory you selected already exists and contains an installation. Choose a different target for installation.
The text was updated successfully, but these errors were encountered: