build-image icon indicating copy to clipboard operation
build-image copied to clipboard

Only cache one version of Node

Open kaganjd opened this issue 4 years ago • 1 comments

We noticed that a customer had two versions of Node in their build cache: v14 which they set two weeks ago, and v12 from before that.

Vivian pointed out that this happens here: https://github.com/netlify/build-image/blob/ccf90c32620e828d060aa71ac6e1760eda71f432/run-build-functions.sh#L685-L691

We should only cache one version. It seems like we're doing that already with Ruby and Swift, so not sure if there's more context behind the decision to be able to cache multiple versions of Node?

More discussion in this Slack thread (internal)

kaganjd avatar Nov 07 '20 00:11 kaganjd

Not certain you'd call this a bug - tis probably operating as designed - but, I think, not as intended and not as customers desire :)

nolessafool avatar Nov 25 '20 22:11 nolessafool