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.

Create a script to execute msys2 and maintain PATH and PKG_CONFIG_PATH

See original GitHub issue

@eyal0 you might want to extend this Action with those two lines, in order to make them easier to maintain and reuse. I would suggest the following:

  1. Fork this repo.
  2. Create a feature branch.
  3. Locally, execute npm run install. Either get NodeJs, use a node container, or use WSL.
  4. Edit https://github.com/msys2/setup-msys2/blob/master/main.js#L163-L174, so that an additional file is written, which contains your custom code.
  5. Execute npm run pkg.
  6. Add index.js, commit and push.
  7. Edit your workflow for using eyal0/setup-msys2@feature-branch-name and change the shell: yourcustomentrypoint {0}. Commit and push.
  8. Go back to 4-6, and restart the worflow until you get it done.

_Originally posted by @eine in https://github.com/msys2/setup-msys2/issues/98#issuecomment-757538531_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:41 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
eyal0commented, Jan 20, 2021

I found the cause of those extra lines and filed a bug. I think that it would be fixed pretty easily.

0reactions
einecommented, Nov 8, 2021

See the continuation of this issue in #171.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Filesystem Paths - MSYS2
Filesystem Paths. Many of our build processes are made up of a mix of Cygwin tools (makepkg/bash for starters) and native Windows tools....
Read more >
Add temporarily path to pkg-config within CMake script?
I tried to add the user-given path to the PKG_CONFIG_PATH but it seemed to be ignored: include(FindPkgConfig) set(PKG_CONFIG_PATH ...
Read more >
Use msys2 in Windows | BN Stack
Sometimes we want to execute applications in Windows $Path (but not in msys2's $PATH) in msys2 shell (e.g. we've installed Python in Windows ......
Read more >
Win32CompileMSYSNew - VideoLAN Wiki - VLC Media Player
MSys is a helper environment for MinGW, the compiler chain for Windows based on GCC. It can build VLC natively on Windows.
Read more >
R Installation and Administration
to check out ' r-devel ' into directory path (which will be created if ... If the configure and make commands execute successfully,...
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