node-gradle / node-gradle/gradle-node-plugin
Support pinning to latest of version of a node version
Open
Nobody has claimed this yet.
enhancement
workaround exists
- Dominant language
- Groovy
- Stars
- 677
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
Right now I have the following
node {
version = '10.16.3'
download = true
}
I would like to pin to
https://nodejs.org/dist/latest-v10.x
node {
version = 'latest-v10.x'
download = true
}
When I do I get the following error
* What went wrong:
Execution failed for task ':cerberus-dashboard:nodeSetup'.
> Could not resolve all files for configuration ':cerberus-dashboard:detachedConfiguration1'.
> Could not find org.nodejs:node:latest-v10.x.
Searched in the following locations:
- https://nodejs.org/dist/vlatest-v10.x/node-vlatest-v10.x-darwin-x64.tar.gz
Required by:
project :cerberus-dashboard
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 tracing the nodeSetup task and the version-to-download-URL resolution described in the issue. Check how the node block's version value becomes the requested Node.js distribution URL; done when latest-v10.x resolves the latest matching v10 release instead of treating it as a literal version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, node.js
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100