build-image
build-image copied to clipboard
Only cache one version of Node
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)
Not certain you'd call this a bug - tis probably operating as designed - but, I think, not as intended and not as customers desire :)