Skip to content

Conversation

@JonoYang
Copy link
Member

This PR updates VirtualCodebase._populate() to append a Resources extension to its name before it is created, if the extension is not already present in the name.

    * When creating a VirtualCodebase from a scan, make sure that the extension is in the file name before creating the Resource
    * Add test

Signed-off-by: Jono Yang <jyang@nexb.com>
@JonoYang JonoYang requested a review from pombredanne August 25, 2022 18:47
@pombredanne
Copy link
Member

@JonoYang is ScanCode.io returning filenames without extensions? this would be a bug there then.

@JonoYang
Copy link
Member Author

JonoYang commented May 3, 2023

Closing this, as we now set extensions in filenames on scancode.io: https://github.com/nexB/scancode.io/blob/main/scanpipe/migrations/0019_auto_20220804_1836.py

@JonoYang JonoYang closed this May 3, 2023
AyanSinhaMahapatra pushed a commit to AyanSinhaMahapatra/commoncode that referenced this pull request Feb 14, 2025
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.

3 participants