Git Product home page Git Product logo

Comments (9)

lazka avatar lazka commented on June 12, 2024 1

no idea, sorry. I never do static builds.

from setup-msys2.

eine avatar eine commented on June 12, 2024

Possible short answer: add base-devel to the 'install' field.

Longer answer. In v0 with update: true, this action used the default installation available in the virtual environment. That includes several extra packages which are not installed in the official distribution: #23 (comment). In v1, the official distribution is used instead, and no extra packages are installed by default. That's why you need to add base-devel and probably some other.

This also can explain why it took a shot time to execute.

Strictly, execution time difference is not related to this. With v0, almost all the preinstalled packages need to be removed and reinstalled, because the virtual environment is out of date. That's what takes 10 min. When using v1, even if you need to install the same packages, it takes much shorter (1-3 min).

from setup-msys2.

goshiz avatar goshiz commented on June 12, 2024

Hi @eine I'm the one that having this issue, thanks @BrightRan that report this problem.

I'm gonna try this.

Thanks !

from setup-msys2.

eine avatar eine commented on June 12, 2024

Hi @goshiz! For reference, the packages that are installed by default in v0 but not in v1 are the following: https://github.com/actions/virtual-environments/blob/master/images/win/scripts/Installers/Install-Msys2.ps1#L56-L63

from setup-msys2.

BrightRan avatar BrightRan commented on June 12, 2024

@eine ,
Thanks for your reply.
I tested as your suggestion that adding base-devel to the install field when using v1, but still get the same errors. See the link below:
https://github.com/ForksForTest/haven-offshore/actions/runs/133155318/workflow#L19

If I missed something, please tell me, thanks.

from setup-msys2.

eine avatar eine commented on June 12, 2024

Hi @BrightRan, on the one hand, https://github.com/ForksForTest/haven-offshore/actions/runs/133155318/workflow#L29-L31 feels strange. I'd add those packages to the install field above. What's the motivation to install them in a separate step? On the other hand, https://github.com/ForksForTest/haven-offshore/runs/764897929?check_suite_focus=true#step:5:409 seems to tell that you are missing development sources. I.e., you might need openssl-devel (headers), and not only openssh (pre-built binaries).

from setup-msys2.

eine avatar eine commented on June 12, 2024

@BrightRan, did you try v2 of this Action?

from setup-msys2.

goshiz avatar goshiz commented on June 12, 2024

Hey @eine yes I updated to v2 a few days ago.

It's working fine but for an unknown reason now all my static build are not static anymore...

from setup-msys2.

eine avatar eine commented on June 12, 2024

@goshiz I think I read something about the issue with static builds, which is related to the MSYS2 repos, not to this action. However, I can't find it now. @lazka, any hint?

from setup-msys2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.