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

Check both csc.exe and vbc.exe as filename to exclude #69221

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

gero3
Copy link
Contributor

@gero3 gero3 commented Jul 25, 2023

I used my identical subexpression analyzer to see if I missed certain exceptions.
This was one diagnostic found that wasn't wrong.

PathComparer.Equals(relativeFileName, "csc.exe") 

was checked twice.

@gero3 gero3 requested a review from a team as a code owner July 25, 2023 22:38
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 25, 2023
@ghost ghost added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Jul 25, 2023
@@ -107,7 +107,6 @@ private bool CheckPackages(TextWriter textWriter)
PathComparer.Equals(relativeFileName, "Icon.png") ||
PathComparer.Equals(relativeFileName, "Init.cmd") ||
PathComparer.Equals(relativeFileName, "VS.Tools.Roslyn.nuspec") ||
PathComparer.Equals(relativeFileName, "csc.exe") ||
Copy link
Member

Choose a reason for hiding this comment

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

@jaredpar should this actually have been vbc?

Copy link
Member

Choose a reason for hiding this comment

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

Sure looks like it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated the PR to exclude vbc.exe also instead of getting csc.exe excluded twice

Copy link
Member

Choose a reason for hiding this comment

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

I'll wait for @jaredpar to take a look before merging, but otherwise LGTM

Copy link
Member

Choose a reason for hiding this comment

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

It's definitely a typo: whether the intent was csi or vbc I cannot decide though.

@gero3 gero3 changed the title Check only once if csc.exe as filename Check both csc.exe and vbc.exe as filename to exclude Jul 26, 2023
@@ -107,7 +107,6 @@ private bool CheckPackages(TextWriter textWriter)
PathComparer.Equals(relativeFileName, "Icon.png") ||
PathComparer.Equals(relativeFileName, "Init.cmd") ||
PathComparer.Equals(relativeFileName, "VS.Tools.Roslyn.nuspec") ||
PathComparer.Equals(relativeFileName, "csc.exe") ||
Copy link
Member

Choose a reason for hiding this comment

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

I'll wait for @jaredpar to take a look before merging, but otherwise LGTM

@jaredpar jaredpar merged commit 2984025 into dotnet:main Jul 31, 2023
@ghost ghost added this to the Next milestone Jul 31, 2023
@dibarbet dibarbet modified the milestones: Next, 17.8 P2 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants