Skip to content

fix(wfp): SP-4442 emit non-empty file path for single file fingerprint - #149

Merged
isasmendiagus merged 2 commits into
mainfrom
fix/SP-4442/wfp-single-file-empty-path
Jun 8, 2026
Merged

fix(wfp): SP-4442 emit non-empty file path for single file fingerprint#149
isasmendiagus merged 2 commits into
mainfrom
fix/SP-4442/wfp-single-file-empty-path

Conversation

@isasmendiagus

Copy link
Copy Markdown
Collaborator

scanoss-js wfp emitted an empty path in the file= line for a single file (file=,,), since folderRoot was set to the file itself.

Fix: for a single file, folderRoot now resolves to the parent directory, producing a valid relative path (/file.js) — consistent with directory mode.

@isasmendiagus
isasmendiagus merged commit 7704cf7 into main Jun 8, 2026
3 checks passed
@isasmendiagus
isasmendiagus deleted the fix/SP-4442/wfp-single-file-empty-path branch June 8, 2026 18:19
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

Successfully merging this pull request may close these issues.

1 participant