Giter Site home page Giter Site logo

pnpm-deploy-bug-2's Introduction

pnpm deploy and frozen lockfile

How to reproduce:

CI=true pnpm --filter="{packages/p2}" deploy dist

Result

Packages are copied from the content-addressable store to the virtual store.
  Content-addressable store is at: /Users/user/Library/pnpm/store/v3
  Virtual store is at:             dist/node_modules/.pnpm
Lockfile is up-to-date, resolution step is skipped
 ERR_PNPM_OUTDATED_LOCKFILE  Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up-to-date with packages/p2/package.json

Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"

The source of the issue

pnpm tries to modify the lockfile which results in these changes:

diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 7a04ea2..194e09e 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -12,4 +12,15 @@ importers:
     specifiers:
       p1: workspace:*
     dependencies:
-      p1: link:../p1
+      p1: file:packages/p1
+    dependenciesMeta:
+      p1:
+        injected: true
+
+packages:
+
+  file:packages/p1:
+    resolution: {directory: packages/p1, type: directory}
+    name: p1
+    version: 1.0.0
+    dev: false

The reason for this change is from this part of the deploy plugin: hook

pnpm-deploy-bug-2's People

Contributors

thenoim avatar

Watchers

 avatar

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.