Code Monkey home page Code Monkey logo

Comments (7)

chrisant996 avatar chrisant996 commented on June 22, 2024 1

Yes. I said you have to run it as the full exact path.

Literally run
%userprofile%\scoop\apps\clink\current\clink autorun install

Running something else, such as clink autorun install, is not the same as running %userprofile%\scoop\apps\clink\current\clink autorun install.

from clink.

chrisant996 avatar chrisant996 commented on June 22, 2024

This is something about scoop, which is interfering with Clink.
It's also not normal behavior for scoop.
You'll probably need to look for help in the scoop forums.

Specific details follow:

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

Specifically how did install clink via scoop?

I tried it just now, and scoop installed it in ~\scoop\apps\clink\current\.
There's no version number in the directory name.

I tried clink autorun install and it also doesn't have a version number in the directory name:

C:\Users\chrisant>clink autorun install
Current AutoRun values

  Current user:

    native : "C:\Users\chrisant\scoop\apps\clink\current\clink.bat" inject --autorun
     wow64 : "C:\Users\chrisant\scoop\apps\clink\current\clink.bat" inject --autorun

  All users:

    native : <unset>
     wow64 : <unset>

Clink successfully installed to run when cmd.exe starts (for current user).

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:

...

What is the "correct" way to update?

The problem is that somehow scoop has gotten into an unusual state where it's putting the version number in the directory name. That breaks installing for AutoRun, since installing for AutoRun has to use the full pathname, which then gets invalidated with each new version.

How did scoop come to put the version number in the directory name?

That's something about scoop, not about Clink.
I don't know much about scoop, so I can't directly help.

from clink.

chrisant996 avatar chrisant996 commented on June 22, 2024

I figured out what's going on:

You ran clink autorun install after Clink was already injected.

Injecting Clink defines an alias clink which points to the exact copy of Clink that was loaded -- and that ends up getting the version number in the directory name.

  • If you ran clink autorun install before Clink was injected, then typing clink would cause CMD to search for Clink in the system PATH, and it would find the directory name with "current", and then that's what would get registered for AutoRun (instead of the version number directory).
  • Or if you ran %userprofile%\scoop\apps\clink\current\clink autorun install then that would work fine.

So, at this point, then simplest thing is just run %userprofile%\scoop\apps\clink\current\clink autorun install, and that should get you back into a normal state where scoop and clink can coexist fine.

(And I'll try to see if there's anything Clink can do to compensate for what scoop is doing, but no guarantees since Clink has no control over scoop.)

from clink.

chrisant996 avatar chrisant996 commented on June 22, 2024

I believe I found a way to compensate for what scoop is doing, so that the clink alias can end up pointing at scoop's "current" app directory symlink, instead of at the actual app version directory.

from clink.

maximunited avatar maximunited commented on June 22, 2024

Thanks for the workaround.
Manually succeeded to overcome:

  1. scoop update clink
  2. clink autorun uninstall
  3. %userprofile%\scoop\apps\clink\current\clink autorun install
  4. %userprofile%\scoop\apps\clink\current\clink inject

from clink.

chrisant996 avatar chrisant996 commented on June 22, 2024

(Step 3 by itself is the key. The other steps weren't needed.)

from clink.

maximunited avatar maximunited commented on June 22, 2024

Actually I've tried that step separetly previously. Didnt help. Unless I must run it as a full path, not just clink autorun install

from clink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.