You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'kvm install' command not adding to user PATH, only process PATH #35
When running the kvm install command, it is not writing the \bin folder to the user PATH, only to the process path. Subsequently closing the command window will cause the kpm and k commands to no longer be found the next time the command prompt is open, until k install is run again. The k upgrade command properly sets the user and process PATH variables.
Command: kvm install 0.1-alpha-build-0443
Downloading KRE-svr50-x86.0.1-alpha-build-0443 from https://www.myget.org/F/aspn
etvnext/api/v2/
Installing to C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443
Adding C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443\bin to pr
ocess PATH
Command: kvm upgrade
Determining latest version
Downloading KRE-svr50-x86.0.1-alpha-build-0443 from https://www.myget.org/F/aspn
etvnext/api/v2/
Installing to C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443
Adding C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443\bin to pr
ocess PATH
Adding C:\Users\Clint\.kre\packages\KRE-svr50-x86.0.1-alpha-build-0443\bin to us
er PATH
Setting alias 'default' to 'KRE-svr50-x86.0.1-alpha-build-0443'
Thanks for the clarification David, I see the -p option on kvm use and kvm install as you mentioned. Just curious why kvm upgrade doesn't require that also? It would seem like it should for consistency. For instance if you just wanted to upgrade to the newest version, but didn't want to manually type out the package from the install command, shouldn't upgrade function in the same way as install, but auto-locate the newest version? Ideally it would be smart and look if the version it is upgrading is in the path, then update it, if not then require a parameter? Just thought I'd ask, there may be a reason I'm not seeing.
Activity
davidfowl commentedon May 18, 2014
That's by design, if you run kvm with no args you'll see the options for persisting it.
clintkolodziej commentedon May 18, 2014
Thanks for the clarification David, I see the
-poption onkvm useandkvm installas you mentioned. Just curious whykvm upgradedoesn't require that also? It would seem like it should for consistency. For instance if you just wanted to upgrade to the newest version, but didn't want to manually type out the package from theinstallcommand, shouldn'tupgradefunction in the same way asinstall, but auto-locate the newest version? Ideally it would be smart and look if the version it is upgrading is in the path, then update it, if not then require a parameter? Just thought I'd ask, there may be a reason I'm not seeing.graemechristie commentedon Jun 21, 2014
If you want to install the latest but not persist or set the default alias you can now use
kvm upgradeis now effectively an alias forkvm install latest -persist -alias defaultFix for issue #29 (Honor JsonProperty when serializing a JsonPatchDoc…
Delete Startup.cs (#35)
Merge pull request #35 from hishamco/buildStatus
Merge pull request #35 from turchenkoalex/bug-27