mridgers / clink

Bash's powerful command line editing in cmd.exe
mridgers.github.io/clink
GNU General Public License v3.0
3.15k stars 286 forks source link

Proper way to update via scoop or clink update? #584

Closed maximunited closed 4 weeks ago

maximunited commented 4 weeks ago

So I installed clink via scoop. now with each new version I do the following: > scoop update > clink update

Then when I type clink info, the version does show the latest, but this version does not match the value of binaries or the scripts . It also shows an "old" version in the clink autorun show.

Example where version is 1.6.5, and other values are 1.6.3:

> clink autorun show                                                                        
Current AutoRun values

  Current user:

    native : "C:\Users\admin\scoop\apps\clink\1.6.3\clink.bat" inject --autorun
     wow64 : "C:\Users\admin\scoop\apps\clink\1.6.3\clink.bat" inject --autorun

  All users:

    native : <unset>
     wow64 : <unset>

and:

> clink info                                                                              
version  : 1.6.15.626c80
session  : 26160
injected : clink_dll_x64.dll
binaries : C:\Users\admin\scoop\apps\clink\1.6.3
state    : C:\Users\admin\AppData\Local\clink
log      : C:\Users\admin\AppData\Local\clink\clink.log
settings : C:\Users\admin\AppData\Local\clink\clink_settings
history  : C:\Users\admin\AppData\Local\clink\clink_history
scripts  : C:\Users\admin\scoop\apps\clink\1.6.3 ; C:\Users\admin\AppData\Local\clink ; C:\Users\admin\MyProgs\clink-completions;C:\Users\admin\MyProgs\clink-completions-extra\;C:\Users\admin\MyProgs\clink-gizmos\;C:\Users\admin\scoop\apps\clink-flex-prompt\0.17
inputrc  : %clink_inputrc%
             (unset)
         : state directory
             C:\Users\admin\AppData\Local\clink\.inputrc
             C:\Users\admin\AppData\Local\clink\_inputrc
         : %userprofile%
             C:\Users\admin\.inputrc
             C:\Users\admin\_inputrc
         : %localappdata%
             C:\Users\admin\AppData\Local\.inputrc
             C:\Users\admin\AppData\Local\_inputrc
         : %appdata%
             C:\Users\admin\AppData\Roaming\.inputrc
             C:\Users\admin\AppData\Roaming\_inputrc
         : %home%
             C:\Users\admin\.inputrc
             C:\Users\admin\_inputrc
system   : 10.0.19045.4412
codepage : 1252
keyboard langid : 8192
keyboard layout : 00000409

What is the "correct" way to update?

chrisant996 commented 4 weeks ago

Ugh. It's a scoop problem. By having the version number in the path, scoop makes itself incompatible with an app's built-in updater. And apparently whoever made the scoop update rules for Clink didn't make it update the autorun config.

I don't own the scoop entry for Clink. I recommend tracking down who owns it, contacting them.

chrisant996 commented 4 weeks ago

Oh but you entered this issue in the wrong repo.

This is the mridgers repo, which was abandoned many years ago.

Please close this issue.

Please open an issue in the chrisant996 Clink repo.

maximunited commented 4 weeks ago

Opened https://github.com/chrisant996/clink/issues/615