krew: Set KREW_ROOT to $dir\.krew (closes #3784)

If KREW_ROOT is set to $persist_dir\.krew, then every time a krew command is run, the following warning appears:

WARNING: To be able to run kubectl plugins, you need to add the
"%USERPROFILE%\.krew\bin" directory to your PATH environment variable
and restart your shell.

This commit fixes this by setting it to $dir\.krew instead.
This commit is contained in:
tech189 2022-08-01 00:43:16 +01:00
parent bfe66e2507
commit 9db229be8b

View File

@ -21,7 +21,7 @@
},
"env_add_path": ".krew\\bin",
"env_set": {
"KREW_ROOT": "$persist_dir\\.krew"
"KREW_ROOT": "$dir\\.krew"
},
"persist": ".krew",
"checkver": {