You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(manifest): isolate the offline cdxgen launcher - #1822
The offline cdxgen help test exits with code 1 on Windows and cancels the v1.x CI matrix. Give the fixture its own launcher for the pinned cdxgen package so it can run offline without reusing pnpm’s workspace launcher. Include the command output when a help check fails.
Low Risk
Changes are limited to test utilities and assertion messages; no production CLI or runtime behavior is modified.
Overview
Fixes failing offline cdxgen help checks on Windows by rebuilding how the temp test fixture wires up @cyclonedx/cdxgen instead of junction-linking the whole pnpm workspace node_modules.
spawnCdxgenHelp now reads the pinned package’s bin entry, writes a minimal package.json, symlinks only @cyclonedx/cdxgen, and uses cmd-shim to create a local node_modules/.bin/cdxgen so offline runs do not depend on pnpm’s workspace-relative launchers. The cdxgen and manifest cdxgen help tests attach stdout/stderr to exit-code assertions when help does not return 0, which makes CI failures easier to diagnose.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The offline cdxgen help test exits with code 1 on Windows and cancels the
v1.xCI matrix. Give the fixture its own launcher for the pinned cdxgen package so it can run offline without reusing pnpm’s workspace launcher. Include the command output when a help check fails.Failing Windows Bash job