Comments (9)
Perhaps we'll start with Linux first then?
from arkade.
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.
The first sudo shouldn't be needed for curl
from arkade.
@Jasstkn / @mrwormhole do you have time for a challenge?
from arkade.
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;
- remove cached versions of arkade,
$HOME/.arkade
,%USERPROFILE%\.arkade
- remove old arkade binary via
which
,where
- get the latest arkade binary to previously found arkade binary path
- from above points, only complete the linux compatible ones for now
from arkade.
The first sudo shouldn't be needed for
curl
yep, you're right!
from arkade.
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.
I have a windows to test on now 😃
from arkade.
How about we get the current binary first with
os.Executable()
then check in the get command if we are updatingarkade
itself and in that case we set themovePath
to the result? Also everything in theget
package seems path aware, so we should approach this withget.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)
- Add kube-score HOT 1
- Do not fail PostgreSQL install on arm64 HOT 1
- Investigate removing IntelArch restriction from app installs HOT 4
- Add etcdctl HOT 1
- Kustomize stopped working since 0.9.23 HOT 1
- End to End tests fail for SOPS (HTTP 301) HOT 3
- Add Red Hat OpenShift on AWS cli as a tool
- Installation of `kustomize` fails in GitHub Actions workflows HOT 2
- Fix required for kubestr and k0s HOT 3
- e2e tests failing for atuin HOT 3
- failed to download k9s in Windows Git Bash HOT 2
- skupper support for arkade get
- Faliures when running `arkade update` on windows HOT 17
- Can't install software with Arkade, getting file not found error for .arkade/bin/helm even though file exists HOT 5
- Add easy option to "arkade install ingress-nginx" to set default IngressClass HOT 5
- Add e2e test for helm utils
- Add rclone as a tool HOT 2
- [Tool] Add kwok tool for K8s load testing HOT 1
- Add Garden - Kubernetes Development & Orchestration Tool HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arkade.