-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Search Windows CLI plugins also in ProgramFiles #1760
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
Search Windows CLI plugins also in ProgramFiles #1760
Conversation
thaJeztah
left a comment
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
ping @ijc
ijc
left a comment
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.
The way you have it ProgramFiles will take priority over ProgramData, so if you install the same plugin in both the one in ProgramFiles will be used. Is that correct for Windows/what a Windows user would expect? (nb: I have no reason to think that is wrong or right since I don't know Windows well enough, just wanted to ask the Q)
|
@ijc A good question. I don't have a hard preference, it looked plausible for me to put ProgramFiles in front as a Windows Server installation has the plugins there. There always is another user specific folder that is searched, so the order would be
Any concerns from the Desktop side about this order? |
|
Perhaps swap 2 and 3 (as in "ProgramFiles" feels more like a default location where things are installed, and "ProgramData" more "runtime", thus "override"; this post seems to confirm that https://stackoverflow.com/a/27497662/1811501) |
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
98e102c to
4d3a76d
Compare
Codecov Report
@@ Coverage Diff @@
## master #1760 +/- ##
==========================================
- Coverage 56.32% 56.27% -0.06%
==========================================
Files 307 307
Lines 21177 21151 -26
==========================================
- Hits 11928 11902 -26
Misses 8382 8382
Partials 867 867 |
|
@thaJeztah All right, I've swapped the two pathes to have ProgramData before ProgramFiles |
|
LGTM, thanks! |
|
Yes, This will help a bit as well for Desktop Enterprise to allow deploy plugins either in |
If we assume that "packaged" installs will generally statically installing things in Still LGTM then! |
- What I did
On Windows also search for CLI plugins in the
C:\Program Files\Docker\cli-pluginsfolder.This would simplify the installation of the docker.zip file with the PowerShell module via the DockerMsftProvider or DockerProvider. They both just unzip the file into C:\Program Files
We only have to put the CLI plugins in the zip into
docker/cli-plugins/and they will be just right in place.- How I did it
- How to verify it
- Description for the changelog
On Windows also search for CLI plugins in the
C:\Program Files\Docker\cli-pluginsfolder.- A picture of a cute animal (not mandatory but encouraged)