-
Notifications
You must be signed in to change notification settings - Fork 493
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
Pacman 5.2.1-7 breaks upgrade from older installation (e.g. appveyor) #1967
Comments
You can use newer installer from https://github.com/msys2/msys2-installer/releases/ or download |
Please resolve this issue as soon as you can. We have windows build fail due to this problem |
Log from our build: NFO: Processing execute[upgrade msys2 database and core packages] action run (C:/Users/ADMINI~1/AppData/Local/Temp/kitchen/cache/cookbooks/mingw/resources/msys2_package.rb line 41)
|
@sn-lurman it's resolved in newer installers: https://github.com/msys2/msys2-installer/releases/ |
I'm using omnibus and it's not working due to this change. |
This might work for you:
|
First off all note that it is affecting my builds too: https://ci.appveyor.com/project/shlomif/fc-solve/builds/33023327 .
Which language is it? Is it sh? |
@shlomif execute it in MSYS2 shell directly or put into shell script. |
Issue: msys2/MSYS2-packages#1967 Signed-off-by: AlexandraTrifan <[email protected]>
Issue: msys2/MSYS2-packages#1967 Signed-off-by: AlexandraTrifan <[email protected]>
@mati865 : ok, thanks! The script does not work nor does it fix the later issue: https://ci.appveyor.com/project/shlomif/fc-solve/builds/33029422 |
Issue: msys2/MSYS2-packages#1967 Signed-off-by: AlexandraTrifan <[email protected]>
Issue: msys2/MSYS2-packages#1967 Signed-off-by: AlexandraTrifan <[email protected]>
@shlomif there was a typo, edited the comment. |
@mati865 : I tried your edited version and it still does not work: https://ci.appveyor.com/project/shlomif/fc-solve/builds/33033336 . The only change there seems to be the removal of a double slash in the URIs. |
Ok, now that's embarrassing. Should work this time. |
@mati865 : thanks! Seems to work: https://ci.appveyor.com/project/shlomif/fc-solve/builds/33036043 - but i have yet to see if the build success will be restored. |
Update: the build is successful. For the record, here is a refactored (and not yet tested) code (my changes are under CC0 ): set -e -x
base_url='http://repo.msys2.org/msys/x86_64/'
packages="libzstd-1.4.4-2-x86_64.pkg.tar.xz pacman-5.2.1-6-x86_64.pkg.tar.xz zstd-1.4.4-2-x86_64.pkg.tar.xz"
for p in $packages
do
curl "${base_url}$p" -o "$p"
done
pacman -U --noconfirm $packages
rm -f $packages
|
Add fix due to msys2/MSYS2-packages#1967
appveyor should work again now. Can anyone confirm? |
Appveyor works if you first upgrade to the previous pacman version and then update the whole thing. But everybody using appveyor MSYS2 has to include this workaround in his .yml as long as either there is a fix in MSYS2 or there is an MSYS2 update on appveyor. |
@hessenfarmer the fix done by @lazka was uploaded recently. He is just waiting on confirmation everything works. |
some of our own appveyor jobs ran through fine now, so I assume this is fixed. |
Thank you very much. |
Hi Lazka, For some reason the same problem is up again: : Proceed with installation? [Y/n] |
yeah, I've posted something here: https://www.msys2.org/news/#2020-05-31-update-fails-with-could-not-open-file |
Describe the bug
it is not possible to upgrade from older Versions to newer version anymore as to decompress 5.2.1-7 it is necessary to use zstd. Support to use this properly came only a couple of days before with 5.2.1-6 any older version will fail to decompress the new pacman.
Steps to Reproduce the Problem
run Pacman -Sy pacman on any older installation
Some regression code to update older versions might be good otherwise one have to do a stepped upgrade first to 5.2.1-6 and then in the next run to the newest pacman
The text was updated successfully, but these errors were encountered: