← Back to issue list

different contents or permissions error

View original Github issue

Metadata

Project
rockcraft
Number
#790
Type
issue
State
open
Author
yanksyoon
Labels
Created
2025-01-21 05:19:19+00:00
Updated
2025-01-21 08:00:10+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description Hello team! A follow up from the [Matrix thread](https://matrix.to/#/!NPPCseDHKRvSBMUEXN:ubuntu.com/$upouJFvo8bjWS08ZNTe9yDtELNuVPh4qbs-ue3vEbbM?via=ubuntu.com&via=matrix.org) regarding the error when trying to merge the `lib` directory together. The problem seems to be with the [NPM plugin](https://documentation.ubuntu.com/rockcraft/en/1.5.3/common/craft-parts/reference/plugins/npm_plugin/), when using `npm-include-node:true` and `npm-node-version` options, which writes `node_modules` to the `/lib` directory. This requires a dummy package.json at the source/root directory. ```package.json { "name": "app", "version": "0.0.0", "private": true, "scripts": { "start": "node ./bin/www" }, "dependencies": { "cookie-parser": "~1.4.4", "debug": "~2.6.9", "express": "~4.16.1", "http-errors": "~1.6.3", "jade": "~1.11.0", "morgan": "~1.9.1" } } ``` ### To Reproduce 1. Create the files above (rockcraft.yaml, package.json). 2. rockcraft pack 3. error: `Detailed information: Parts 'test/runtime' and 'expressjs-framework/install' list the following files, but with different contents or permissions: lib` ### Environment Ubuntu 22.04 LTS ### rockcraft.yaml ```yaml name: demo title: demo version: '0.1' summary: summary description: lib dir issue demo base: bare build-base: ubuntu@24.04 platforms: amd64: build-on: - amd64 build-for: - amd64 parts: test/install: plugin: npm npm-include-node: true npm-node-version: node source: . build-packages: [] stage-packages: - bash_bins test/runtime: plugin: nil stage-packages: - libpq5_libs ``` ### Relevant log output ```shell N/A ```

Evaluation history

No evaluation history available.