question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add MSYS2 and some of its packages to Windows image

See original GitHub issue

I need MSYS2 added to the windows.vs2022.amd64 image, plus ideally a handful of packages - this is part of the regular AzDO Hosted pool, but seems not to be present on our pool’s images. Right now, I’m using:

(New-Object System.Net.WebClient).DownloadFile('https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe', 'msys2.exe')
.\msys2.exe -y -oC:\  # Extract to C:\msys64
Remove-Item msys2.exe  # Delete the archive again
C:\msys64\usr\bin\bash -lc ' '
C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -S msys/make msys/ninja msys/cmake msys/diffutils'

on a per-build basis. We should probably bake it in, to avoid the repeated downloads & extra point of failure.

(These instructions are pretty much direct from the MSYS2 website page on CI integration, https://www.msys2.org/docs/ci/#other-systems )

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Issue Analytics

  • State:open
  • Created 6 months ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
directhexcommented, Mar 22, 2023

👍 my build is green with 1es-windows-2022 and:

        - powershell: |
            C:\msys64\usr\bin\bash -lc ' '
            C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
            C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -S msys/make msys/ninja msys/cmake msys/diffutils'
          displayName: Install MSYS2 packages (GNU Make and related)
0reactions
mmitchecommented, Aug 7, 2023

Yeah I think this is an improvement. Certainly an improvement over downloading a nightly build of msys2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using MSYS2 in CI
In case you want to update the MSYS2 installation and install packages you need to ... Install MSYS2 under C:\msys64 into a Windows...
Read more >
Add MSYS2 to Windows · Issue #30 · actions/runner-images
There's no reason to presume that. We are using MSYS2 to test Windows compilation of our project using GCC and Clang (in parallel...
Read more >
Add msys2 support - Windows
Upgrading the following packages: git.install By upgrading you accept licenses for the packages. You have git.install v2.19.1 installed. Version ...
Read more >
Setting Up Msys2;MinGW64 for Windows - Boseji's Lab
Guide to creating windows build environment for MinGW64. ... There are some pictures in the Msys2 Website. You can follow them as well....
Read more >
How to Install MSYS2 with MinGW-w64 - YouTube
Download and run the installer from https:// msys2.github.io/ Run the MSYS2 shell after the installation and update the core with the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found