Skip to content

C#: add --working-dir=. to pre-finalize #11893

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

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Jan 16, 2023

codeql database index-files will by default find all files within the source-location-prefix as specified in the WIP database.

If what you really want is to extract the files under the current working directory, then you need to specify --working-dir=.".
I think that is what you want, and it's also what the pre-finalize script for Go is doing.

I'm not sure how I would add a test for this.

I just fixed a related error in Ruby/QL: #11884, which is how I found this (by searching for other uses of codeql database index-files).

@github-actions github-actions bot added the C# label Jan 16, 2023
@erik-krogh erik-krogh marked this pull request as ready for review January 16, 2023 17:24
@erik-krogh erik-krogh requested a review from a team as a code owner January 16, 2023 17:24
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks plausible to me!

@erik-krogh erik-krogh merged commit 1a64393 into github:main Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants