Git Product home page Git Product logo

Comments (5)

eine avatar eine commented on June 12, 2024

I'm not sure to understand the use case. It feels like something you could add to .bashrc in a single step, after this action. Furthermore, you might execute that setup step only with MSYS2_PATH_TYPE=inherit, so you get access to all the envvars when setting up your custom paths.

Would you mind providing an example workflow where this feature would be used?

from setup-msys2.

3b avatar 3b commented on June 12, 2024

Yeah, dumping things in .bashrc is probably the best workaround, and probably as good as an extra option to the action. just hoped to keep using existing code (with ::add-path::) if possible.

Running only one step with inherit is also an interesting suggestion, hadn't though of that.

https://github.com/3b/pngload/blob/ci/.github/workflows/test.yml is the workflow that inspired it. Switching to using .bashrc instead of ::add-path:: wouldn't be a big change, so I might just switch to that.

from setup-msys2.

eine avatar eine commented on June 12, 2024

In the reference workflow you linked, there is already an specific step for customizing the PATH on Windows. Hence, as you say, the change would be very small. Moreover, I believe it more "idiomatic" to avoid inherit as a default setting and, instead, add the custom locations to MSYS2's internal PATH rather than to the Windows PATH.

Should you need to have some custom locations added both in MSYS2 and on the Windows PATH, I'd suggest using ::add-path:: and .bashrc at the same time.

from setup-msys2.

eine avatar eine commented on June 12, 2024

https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

from setup-msys2.

eine avatar eine commented on June 12, 2024

See https://github.com/umarcor/Surelog/blob/bec95782d6e44cbee8c7f4ce87c6e58716ddd0da/.github/workflows/test.yml#L89-L91 for an example about how to add a path to bashrc.

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.