Giter Club home page Giter Club logo

Comments (9)

alexellis avatar alexellis commented on June 7, 2024 1

Perhaps we'll start with Linux first then?

from arkade.

Jasstkn avatar Jasstkn commented on June 7, 2024 1

Hm, on Mac I just have an alias to do the following:

which upd_arkade
upd_arkade: aliased to sudo curl -sLS https://get.arkade.dev | sudo sh

from arkade.

alexellis avatar alexellis commented on June 7, 2024 1

The first sudo shouldn't be needed for curl

from arkade.

alexellis avatar alexellis commented on June 7, 2024

@Jasstkn / @mrwormhole do you have time for a challenge?

from arkade.

mrwormhole avatar mrwormhole commented on June 7, 2024

yes makes sense to me, is it potentially safe to swap old arkade binary with new arkade binary during the old arkade CLI process? I believe it is safe on linux, but on windows I have doubts

currently this makes sense;

  1. remove cached versions of arkade, $HOME/.arkade, %USERPROFILE%\.arkade
  2. remove old arkade binary via which , where
  3. get the latest arkade binary to previously found arkade binary path
  4. from above points, only complete the linux compatible ones for now

from arkade.

Jasstkn avatar Jasstkn commented on June 7, 2024

The first sudo shouldn't be needed for curl

yep, you're right!

from arkade.

Shikachuu avatar Shikachuu commented on June 7, 2024

How about we get the current binary first with os.Executable() then check in the get command if we are updating arkade itself and in that case we set the movePath to the result?
Also everything in the get package seems path aware, so we should approach this with get.Download() like everywhere else.

Honestly I don't know if this will work on windows, but I'm quite sure it this will solve the problem for our unix friends.

from arkade.

Jasstkn avatar Jasstkn commented on June 7, 2024

I have a windows to test on now 😃

from arkade.

Shikachuu avatar Shikachuu commented on June 7, 2024

How about we get the current binary first with os.Executable() then check in the get command if we are updating arkade itself and in that case we set the movePath to the result? Also everything in the get package seems path aware, so we should approach this with get.Download() like everywhere else.

Honestly I don't know if this will work on windows, but I'm quite sure it this will solve the problem for our unix friends.

@alexellis, @Jasstkn is this solution seems good for you guys?

I can start to skeetch up a PR this weekend or so.

from arkade.

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.