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

Build failure: swagger-cli: noBrokenSymlinks #391281

Open
3 tasks done
gaelj opened this issue Mar 19, 2025 · 3 comments
Open
3 tasks done

Build failure: swagger-cli: noBrokenSymlinks #391281

gaelj opened this issue Mar 19, 2025 · 3 comments
Labels
0.kind: build failure A package fails to build 3.skill: good-first-bug This seems like it's fixable by a non-expert

Comments

@gaelj
Copy link
Contributor

gaelj commented Mar 19, 2025

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

sweagger-cli build is still broken since feb 8. The problem was originally mentioned by myself in #380227 but I had made a common issue for this and bitwarden-cli (thinking the root cause was common), which has been repaired since.

Can Hydra reproduce this build failure?

Please select the Hydra Status.

Link to Hydra build job

No response

Relevant log output

building '/nix/store/p10k5z3rm4az46v4mz3yga1fp39hmi2q-swagger-cli-4.0.4.drv'...
error: builder for '/nix/store/p10k5z3rm4az46v4mz3yga1fp39hmi2q-swagger-cli-4.0.4.drv' failed with exit code 1;
       last 25 log lines:
       > patching script interpreter paths in /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/parser points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/@babel/parser/bin/babel-parser.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/bump points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/@jsdevtools/version-bump-prompt/bin/bump.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/depcheck points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/depcheck/bin/depcheck.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/eslint points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/eslint/bin/eslint.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/acorn points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/acorn/bin/acorn
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/flat points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/flat/cli.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/he points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/he/bin/he
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/json5 points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/json5/lib/cli.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/mkdirp points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/mkdirp/bin/cmd.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/mocha points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/mocha/bin/mocha
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/_mocha points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/mocha/bin/_mocha
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/jsesc points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/jsesc/bin/jsesc
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/npm-check points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/npm-check/bin/cli.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/rimraf points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/rimraf/bin.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/semver points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/semver/bin/semver.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/nyc points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/nyc/bin/nyc.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/rc points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/rc/cli.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/is-ci points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/is-ci/bin.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/shx points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/shx/lib/cli.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/strip-indent points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/strip-indent/cli.js
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/uuid points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/uuid/bin/uuid
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/node-which points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/which/bin/node-which
       > ERROR: noBrokenSymlinks: the symlink /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/.bin/shjs points to a missing target: /nix/store/222di688knzbvw8f973wbc285rs3z874-swagger-cli-4.0.4/lib/node_modules/@apidevtools/swagger-cli/node_modules/shelljs/bin/shjs
       > ERROR: noBrokenSymlinks: found 23 dangling symlinks and 0 reflexive symlinks
       For full logs, run 'nix log /nix/store/p10k5z3rm4az46v4mz3yga1fp39hmi2q-swagger-cli-4.0.4.drv'.
error: 1 dependencies of derivation '/nix/store/q6nbxbq0c7an0r1rzd5xz9hhdg54m3a1-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vsc905ig41ylpmyqmp4w5xsdvfw1nn2q-nixos-system-nixos-25.05.20250313.6607cf7.drv' failed to build

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.13.7, NixOS, 25.05 (Warbler), 25.05.20250318.b6eaf97
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • channels(root): "nixos"
  • nixpkgs: /nix/store/alzxn3hjisc84hrlv44x6hni48crww26-source

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@gaelj gaelj added the 0.kind: build failure A package fails to build label Mar 19, 2025
@gaelj gaelj changed the title Build failure: swagger-cli Build failure: swagger-cli: noBrokenSymlinks Mar 19, 2025
@donovanglover donovanglover added the 3.skill: good-first-bug This seems like it's fixable by a non-expert label Mar 19, 2025
@samimshoaib01
Copy link

Hi, I am an Outreachy applicant and would love to work on this issue. Could you please assign it to me?

@leona-ya
Copy link
Member

You can just open a PR with this Issue mentioned in the description. No assignment needed.

@gaelj
Copy link
Contributor Author

gaelj commented Mar 19, 2025

Hey thanks @samimshoaib01. Looking forward for your contribution.

FYI there were a few other packages that suffered the same problem and were successfully fixed, bitwarden-cli for example. Search for noBrokenSimlinks in the closed issues / pull requests, it might give you some inspiration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 3.skill: good-first-bug This seems like it's fixable by a non-expert
Projects
None yet
Development

No branches or pull requests

4 participants