[Proposal] Dependencies with command arguments
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- node.js, typescript
- Domain
- build-system, tooling
Research direction
Start by reviewing how Wireit parses dependency entries and how command arguments participate in script fingerprints and cache restoration, as described in the issue. The feature is done when a dependency can include arguments such as "build debug" and alternating invocations restore the appropriate cached outputs separately.
Written by the indexing model from the issue text.
Description
Use case
I have build command that takes an optional debug flag that triggers a debug build. It would be very convenient if I could have a script that depends on the debug build without having to create a separate build-debug script, since the only difference is this extra argument:
"run": {
"command": "node ..."
"dependencies": ["build"]
},
"debug": {
"command": "node ..."
"dependencies": ["build debug"]
}
This dovetails very nicely with how wireit already works, as wireit already
- includes extra arguments in the script fingerprint.
- separately caches and restores invocations with different argument values.
Thus successive, alternating invocations of npm run run and npm run debug is very efficient, only having to restore cached output of build or build debug as needed.
- Dominant language
- TypeScript
- Stars
- 6.4k
- Forks
- 129
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from google/wireit
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
clean: "if-file-deleted" can permanently cache incomplete output when the build tool is incrementalOpen
Difficulty 3/5 1-2 days Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
google/wireit#1407 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
google/wireit#1344 · 3 comments ·
Maintainers usually reply within 1 day
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
aiko-chan-ai/DiscordBotClient#380 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vercel/ai-elements#507 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 Half a day Newbie friendliness 84/100
anaclumos/qa-interns#148 · 1 comment ·
Maintainers usually reply within 1 day