[go: nahoru, domu]

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

[container] Error while generating SBOM for cdxgen image #1355

Closed
prabhu opened this issue Sep 4, 2024 · 1 comment
Closed

[container] Error while generating SBOM for cdxgen image #1355

prabhu opened this issue Sep 4, 2024 · 1 comment
Labels
help wanted Extra attention is needed lang:container

Comments

@prabhu
Copy link
Collaborator
prabhu commented Sep 4, 2024

It is not clear why a hardlink is even getting created between .gitkeep to nothing.c. Perhaps some kind of pnpm optimization to reduce size, since both of these are empty files?

https://github.com/CycloneDX/cdxgen/actions/runs/10706814041/job/29685383349#step:12:96

Error while extracting image /tmp/docker-images-SJf3Cg/blobs/sha256/00fc71bb470c80d262ce8377fe0d4544fce3b2f2e9f923a7bee785311b8d33eb to /tmp/docker-images-SJf3Cg/all-layers. Please file this bug to the cdxgen repo. https://github.com/CycloneDX/cdxgen/issues
------------
Error: ENOENT: no such file or directory, link '/tmp/docker-images-SJf3Cg/all-layers/opt/cdxgen/node_modules/.pnpm/@appthreat+atom@2.0.18/node_modules/@appthreat/atom/plugins/.gitkeep' -> '/tmp/docker-images-SJf3Cg/all-layers/opt/cdxgen/node_modules/.pnpm/node-addon-api@7.1.0/node_modules/node-addon-api/nothing.c'
    at Object.linkSync (node:fs:1847:11)
    at [link] (/home/runner/work/cdxgen/cdxgen/node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js:913:24)
    at [hardlink] (/home/runner/work/cdxgen/cdxgen/node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js:546:15)
    at [makeFs] (/home/runner/work/cdxgen/cdxgen/node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js:706:30)
    at [makeFs] (/home/runner/work/cdxgen/cdxgen/node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js:740:25)
    at [checkFs] (/home/runner/work/cdxgen/cdxgen/node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js:772:26)
    at [onEntry] (/home/runner/work/cdxgen/cdxgen/node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js:358:29)
    at UnpackSync.<anonymous> (/home/runner/work/cdxgen/cdxgen/node_modules/.pnpm/tar@6.2.1/node_modules/tar/lib/unpack.js:226:44)
    at UnpackSync.emit (node:events:519:28)
    at UnpackSync.emit (node:domain:488:12) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'link',
  path: '/tmp/docker-images-SJf3Cg/all-layers/opt/cdxgen/node_modules/.pnpm/@appthreat+atom@2.0.18/node_modules/@appthreat/atom/plugins/.gitkeep',
  dest: '/tmp/docker-images-SJf3Cg/all-layers/opt/cdxgen/node_modules/.pnpm/node-addon-api@7.1.0/node_modules/node-addon-api/nothing.c',
@prabhu prabhu added help wanted Extra attention is needed lang:container labels Sep 4, 2024
@prabhu
Copy link
Collaborator Author
prabhu commented Sep 9, 2024

Apparently such hard links are a feature of pnpm

Files inside node_modules are cloned or hard linked from a single content-addressable storage

@prabhu prabhu closed this as completed in 90e1ca1 Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed lang:container
Projects
None yet
Development

No branches or pull requests

1 participant