Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pnpm的最新版升级到了9.0,Lockfile版本从6.x更新到了9.x,pnpm老版本8.x不兼容9.x的lockfile。而现在在容器构建时,执行
pnpm fetch
时下载的pnpm为最新版9.0,而此时所使用的lockfile为6.x,新版本的pnpm会在执行pnpm fetch时把lockfile更新到最新的9.x版本,但是后面在执行后续的pnpm指令时使用的pnpm版本为老版本8.x,不兼容最新的lockfile。由于 vercel/turborepo#7993 问题,现在不能升级pnpm到最新的9.0版本。
此PR把package.json在执行
pnpm fetch
执行复制进了容器,使得执行pnpm fetch
时所使用的pnpm版本为指定的版本而非最新版,保证lockfile不会意外改变。