microsoft / microsoft/lage

lage shouldn't forward all arguments to all running targets

Open
#745 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
816
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Lage forwards all arguments to all targets and this can break some targets

To Reproduce
Steps to reproduce the behavior:

  1. Create a target using tsc, let's call that build
  2. Run lage to trigger this build target with -- --foo=bar
  3. tsc fails because lage forwards --foo=bar to tsc which complains that --foo is unknown argument

Expected behavior
It should be possible to define which arguments are forwarded to which targets

Environment/Troubleshooting
N/A

Contributor guide

No contributing guide indexed for this repository

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 tracing how lage parses arguments after -- and forwards them to running targets. Reproduce the issue with a tsc build target and --foo=bar; done means arguments can be assigned to intended targets without being sent to targets that reject them.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.