node-gradle / node-gradle/gradle-node-plugin
npmSetup args property immutable
Open
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 677
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
When I try to add registry parameter for npmSetup Task according to FAQ:
tasks.npmSetup {
doFirst {
args.addAll(['--registry', 'http://myregistry.npm.com'])
}
}
I get an error running npmSetup:
Execution failed for task ':xxx:npmSetup'.
> The value for task ':xxx:npmSetup' property 'args' is final and cannot be changed any further.
plugin version: 3.1.1
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by reproducing the npmSetup configuration from the issue with plugin version 3.1.1, then inspect the npmSetup entry point and how its args property is finalized. Done means registry arguments can be configured without the final-property error and the behavior is covered by the relevant test, if one is located.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, nodejs
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100