topgrade icon indicating copy to clipboard operation
topgrade copied to clipboard

msys2 updates

Open Un1q32 opened this issue 3 years ago • 4 comments

I want to suggest a new step

Which tool is this about? Where is its repository?

msys2 uses pacman, by default its not in PATH unless inside the msys2 shell, but the default location is C:\msys64\usr\bin\pacman.exe

Which operating systems are supported by this tool?

Windows

What should Topgrade do to figure out if the tool needs to be invoked?

Check for pacman.exe in path and in the default install location checking for just pacman without the exe extention would work too since windows will sort everything out as long as the file ends in an executable extention like exe, cmd, or bat, so you could just have the same pacman check run on both arch and windows.

Which exact commands should Topgrade run?

same as on arch linux

Un1q32 avatar Feb 06 '23 21:02 Un1q32

bump

Un1q32 avatar Mar 24 '23 18:03 Un1q32

Bump noted, will be done hopefully soon, I have just too much to do

s34m avatar Mar 27 '23 21:03 s34m

its worth noting that another common location for pacman is C:\Users\<user>\scoop\apps\msys2\current\usr\bin\pacman.exe for people who install msys2 with scoop

Un1q32 avatar Mar 28 '23 17:03 Un1q32

We should use a command like "C:\msys64\usr\bin\bash -lc '/usr/bin/pacman -Syu'", because pacman executes the scripts in the hooks just as it does in arch linux, and a bash started with the --login option will execute these scripts normally.

hour-keeper avatar Mar 13 '24 15:03 hour-keeper