Skip to content

'kvm install' command not adding to user PATH, only process PATH #35

Closed

Description

@clintkolodziej

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'

Activity

  1. davidfowl commented on May 18, 2014

    @davidfowl
    Member

    That's by design, if you run kvm with no args you'll see the options for persisting it.

  2. clintkolodziej commented on May 18, 2014

    @clintkolodziej
    Author

    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.

  3. graemechristie commented on Jun 21, 2014

    @graemechristie
    Contributor

    If you want to install the latest but not persist or set the default alias you can now use

    kvm install latest
    

    kvm upgrade is now effectively an alias for kvm install latest -persist -alias default

  4. added a commit that references this issue on Nov 9, 2018
  5. added 2 commits that reference this issue on Nov 19, 2018
  6. added a commit that references this issue on Nov 21, 2018
  7. ghost locked as resolved and limited conversation to collaborators on Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions