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

Test that file_parser reads .proj files #8746

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Conversation

ryanbrandenburg
Copy link
Contributor

Right now if Dependabot is checking a directory which contains only .proj files (but that .proj file may reference a csproj higher up) it will fail with No project file or packages.config!. That's because the regex used in this case is /\.[a-z]{2}proj$/, if we make the 2 characters optional we get the .proj file we were expecting.

@ryanbrandenburg ryanbrandenburg requested a review from a team as a code owner January 9, 2024 19:12
@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Jan 9, 2024
@ryanbrandenburg
Copy link
Contributor Author

@bdragon Could I get a review on this?

Copy link
Member

@bdragon bdragon left a comment

Choose a reason for hiding this comment

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

Looks good. I was just looking at the FileUpdater and this seems consistent with what it's doing:

def project_files
dependency_files.select { |df| df.name.match?(/\.([a-z]{2})?proj$/) }
end

@bdragon bdragon merged commit d0ef613 into main Jan 10, 2024
63 checks passed
@bdragon bdragon deleted the dev/rybrande/ProjPickup branch January 10, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants