Giter Site home page Giter Site logo

major version tags about cimg-node HOT 6 CLOSED

circleci-public avatar circleci-public commented on July 19, 2024 6
major version tags

from cimg-node.

Comments (6)

mvxt avatar mvxt commented on July 19, 2024 3

Hi all, I've created an idea for this in the features suggestion portal for CircleCI. Please vote for this idea so that we can gauge what the demand is: https://ideas.circleci.com/images/p/re-introduce-latest-tags-for-next-gen-convenience-images

from cimg-node.

mikemaccana avatar mikemaccana commented on July 19, 2024 2

Same here. We don't want lts since that would mean a 12-14 upgrade when lts changes, but we do want to test on the latest 12.

from cimg-node.

nikolaik avatar nikolaik commented on July 19, 2024 1

Excellent suggestion. It makes sense to allow sticking to a major version with no breaking changes, but still get bugfixes and features/performance improvements

from cimg-node.

colinbjohnson avatar colinbjohnson commented on July 19, 2024

One of the companies I work with has node standards that define "always use the latest major version of node" as the feel comfortable having automatically incremented minor and patch versions but not major versions.

from cimg-node.

felicianotech avatar felicianotech commented on July 19, 2024

There's no current plans to do this. This is something we're aware of though and will be considering depending on future feedback.

There's two main reasons why don't have this currently:

  1. It would be expected that breaking changes etc could break our builds but believe it or not it's no always obvious. It's not always the case and we've had many complains with users of legacy images and other things where this occurs.
  2. There's a small technical challenge as to what is "latest". For many language projects including Node.js, they will publish patch releases for older series. For example, when Node.js v15.2, the major version tag request here would be 15 and would point to Node.js v15.2.0. If Node.js decided to do a patch release for the v15.0 series, that version would be v15.0.2. Our system, would then update the major tag 15 to point to that release, which isn't what you would want. When we support release candidate and beta versions in the future, it makes this issue more complicated.

from cimg-node.

colinbjohnson avatar colinbjohnson commented on July 19, 2024

In regards to item 2 - I think I could submit a PR for this that'd properly fetch the latest "minor.patch" for each "major" version. I think the logic would look like:

  1. List all node versions in https://nodejs.org/dist/latest-v14.x/ (or https://nodejs.org/dist/latest-v12.x/, etc)
  2. Identify the node version matching regex node-v.*-linux-x64.tar.xz
  3. Download that node version and install.

Two stumbling blocks, but otherwise I'd be good:

  • I haven't watched the nodejs distribution site closely enough to know that /dist/latest-v*.x always contains only one file matching a given regex, but I suspect it does.
  • I also don't know much about what happens after the Dockerfiles are built

from cimg-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.