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

different contents or permissions error #790

Open
yanksyoon opened this issue Jan 21, 2025 · 0 comments
Open

different contents or permissions error #790

yanksyoon opened this issue Jan 21, 2025 · 0 comments

Comments

@yanksyoon
Copy link
Contributor

yanksyoon commented Jan 21, 2025

Bug Description

Hello team!
A follow up from the Matrix thread regarding the error when trying to merge the lib directory together.

The problem seems to be with the 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.

{
  "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

name: demo
title: demo
version: '0.1'
summary: summary
description: lib dir issue demo
base: bare
build-base: [email protected]
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

N/A
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

1 participant