Skip to content

Ensure extensions are in names #46 - #47

Closed
JonoYang wants to merge 1 commit into
mainfrom
virtualcodebase-resource-name-extension
Closed

Ensure extensions are in names #46#47
JonoYang wants to merge 1 commit into
mainfrom
virtualcodebase-resource-name-extension

Conversation

@JonoYang

Copy link
Copy Markdown
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
Copy Markdown
Member

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

@JonoYang

JonoYang commented May 3, 2023

Copy link
Copy Markdown
Member Author

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
@JonoYang
JonoYang deleted the virtualcodebase-resource-name-extension branch May 1, 2026 21:28
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.

2 participants