node-gradle / node-gradle/gradle-node-plugin

Support pinning to latest of version of a node version

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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.