-
Notifications
You must be signed in to change notification settings - Fork 914
Rewrite Get-ChocolateyPath cmdlet #3646
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
Conversation
557de2c
to
69703d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor things.
69703d8
to
a2a717a
Compare
a2a717a
to
2606d36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. I've run some tests in a local VM, and a full suite of tests in Test Kitchen. None of the failing tests in Test Kitchen are a concern at the moment (see Slack discussion for more details).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a couple of questions/suggestions here.
Let me know what you think, and if you have any follow up questions.
Once these are addressed, and this PR rebased, I think we can go ahead and get this merged.
src/chocolatey.sln
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this file changed?
If this is indeed needed, I think it warrants its own commit to provide some insight into why this was needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've seen similar changes when I've been debugging things, so I suspect this was a Visual Studio thing that just automatically added these things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I probably forgot to pull it out, I can remove this one if we want? VS keeps changing it for me though and it might just be easier to roll that in sooner or later so it's not a constant annoyance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this one for now; if we wanna pull this one in, it should probably just go on develop
at some point anyway rather than this feature branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is repeatable on your system, it would be great to know what those steps are, as I have not seen these changes being made on my system when I have this sln open. I always tend to defer to what Visual Studio wants to do, since it "knows better" and it means that I stop fighting with it, but I haven't seen this specific change being made, so would be curious to know what is causing it. i.e. could it be a different extension that you have installed, or that I have installed.
b2d5af9
to
e6420f4
Compare
Rewrite of the Get-ChocolateyPath into C# cmdlet, and associated changes to helper methods.
Previous changes here made things not work very well with the renaming of md<=>mdx files, this just ensures that you can actually have the script open the editor for the MDX files, since those are what exists after the script runs.
Test all the things!
e6420f4
to
6d79bd3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@vexx32 thanks for getting this added! |
Description Of Changes
Motivation and Context
See #3477
Testing
Invoke-Tests.ps1 -Tag GetChocolateyPath
Operating Systems Testing
Windows 11
Change Types Made
Change Checklist
Related Issue
Part of #3477
Docs PR: chocolatey/docs#1173