Skip to content

Tidy fails with node 22.20.0 and npm 10.9.3 installed #147500

@Zeckmathederg

Description

@Zeckmathederg

With node.js-22.20.0 (npm-10.9.3) installed, a test checking if /usr/bin/npm --verbose returns exit code 0 fails. This is because npm's behavior when not given a command will return exit code 1. As far as npm is concerned, it wasn't given a command, like help, even though the --verbose option was passed. However, passing help to the npm command will return exit code 0 as intended. So the command to run would be /usr/bin/npm --verbose help. This should make the test succeed.

The file seeming to cause it is src/bootstrap/src/core/build_steps/test.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tidyArea: The tidy toolE-needs-investigationCall for partcipation: This issues needs some investigation to determine current statusT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions