actions / actions/toolkit

addPath always prepend to path

Open
#270 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the enhancement
core.addPath
assumes you always wants to prepend, however in some cases, you want to append to path.

Appending is most likely the case for dotnet global tools.

Either add another method or have a boolean/option to choose whether you want to append/prepend

Additional information
https://github.com/actions/setup-dotnet/issues/69#issuecomment-568156276

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the core.addPath entry point and the linked setup-dotnet discussion to understand the requested append behavior. Define the API choice from the issue's alternatives, then verify that paths can be appended as well as prepended and that the existing behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.