Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNPM Version / Lockfile Mismatch #42

Closed
twomoses opened this issue Apr 25, 2023 · 3 comments
Closed

PNPM Version / Lockfile Mismatch #42

twomoses opened this issue Apr 25, 2023 · 3 comments

Comments

@twomoses
Copy link

twomoses commented Apr 25, 2023

Step 5/23 : RUN pnpm install --frozen-lockfile


 ---> Running in 3f9499b65abe

 ERR_PNPM_FROZEN_LOCKFILE_WITH_OUTDATED_LOCKFILE  Cannot perform a frozen installation because the version of the lockfile is incompatible with this version of pnpm

Try either:
1. Aligning the version of pnpm that generated the lockfile with the version that installs from it, or
2. Migrating the lockfile so that it is compatible with the newer version of pnpm, or
3. Using "pnpm install --no-frozen-lockfile".
Note that in CI environments, this setting is enabled by default.

ERROR: Build step failed with exception
com.github.dockerjava.api.exception.DockerClientException: Could not build image: The command '/bin/sh -c pnpm install --frozen-lockfile' returned a non-zero code: 1
	at com.github.dockerjava.api.command.BuildImageResultCallback.getImageId(BuildImageResultCallback.java:78)
	at com.github.dockerjava.api.command.BuildImageResultCallback.awaitImageId(BuildImageResultCallback.java:50)
	at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher$Run.buildImage(DockerBuilderPublisher.java:404)
	at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher$Run.run(DockerBuilderPublisher.java:344)
	at com.nirima.jenkins.plugins.docker.builder.DockerBuilderPublisher.perform(DockerBuilderPublisher.java:486)
	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:80)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
	at hudson.model.Build$BuildExecution.build(Build.java:199)
	at hudson.model.Build$BuildExecution.doRun(Build.java:164)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526)
	at hudson.model.Run.execute(Run.java:1900)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
	at hudson.model.ResourceController.execute(ResourceController.java:101)
	at hudson.model.Executor.run(Executor.java:442)
Build step 'Build / Publish Docker Image' marked build as failure

According to this comment from a maintainer of PNPM, the version should be pinned in CI pipelines.

@twomoses
Copy link
Author

I changed --frozen-lockfile to --no-frozen-lockfile on my local, and it appears to be running properly. That may not be the proper fix, and I have not verified that everything functions, only that it runs and basics are working.

@zyachel
Copy link
Owner

zyachel commented Apr 26, 2023

ah, I see I accidentally committed this ioredis update while generating CHANGELOG.md and bumping version:

86737c5#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L22-R22

let me just bump all dependencies :)

@twomoses
Copy link
Author

twomoses commented Apr 26, 2023

Looks great! Feel free to add me to the list:

https://libremdb.nerdyfam.tech/
Location: U.S.
Operated by: Nerdyfam.tech

zyachel added a commit that referenced this issue Apr 29, 2023
add a new instance by nerdyfam.tech

resolves #42 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants