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

Extractcode replaces : in file names with _ #41

Open
JonoYang opened this issue Jun 13, 2022 · 1 comment
Open

Extractcode replaces : in file names with _ #41

JonoYang opened this issue Jun 13, 2022 · 1 comment

Comments

@JonoYang
Copy link
Member

This replacement is causing an issue with how debian system package resources are found and associated in the scancode.io docker pipeline. Some debian .list files have : in their names to separate the architecture from the package name, e.g. libc6:amd64.list. However, extractcode extracts this file as libc6_amd64.list. The code run in the docker pipeline is trying to find the original, unmodified name (libc6:amd64.list), and such the pipeline does not find the declared resources of a package from the .list as it was extracted as libc6_amd64.list

@petergardfjall
Copy link

petergardfjall commented Jun 21, 2022

I ran into a similar issue with files like this one: AuthenticationHandler`1.cs being "translated" into AuthenticationHandler_1.cs. It seems to be a convention in certain C# projects to add backticks to filenames.

Would a possibility be to make it possible to opt-out on the filename conversion by introducing a --preserve-filenames flag to extractcode?

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

No branches or pull requests

2 participants