cli icon indicating copy to clipboard operation
cli copied to clipboard

Upgrade command

Open cchalop1 opened this issue 3 years ago • 5 comments

Hi,

I made a first implementation of the upgrade command.

It's not completely finished, the different flags are missing in the build part.

For example like this for brew:

go build -o bin/railway "-ldflags "-X main.OriginalInstallationMethod=brew"

And finally I'm waiting for your feedback especially on the gender difference between yarn and npm.

thank you have a good day

cchalop1 avatar Jul 10 '22 08:07 cchalop1

Hi, thanks for your return

cchalop1 avatar Aug 23 '22 22:08 cchalop1

What remains to be done is to implement the build part @JakeCooper

cchalop1 avatar Aug 23 '22 22:08 cchalop1

Ah shit I see what you mean. I don't know if there's a way to actually ship those multiple binaries without a ton of work.

Added a comment but you may just want to get with the execution path method and then throw if you can't find it for brew/yarn/npm/curl

JakeCooper avatar Aug 24 '22 21:08 JakeCooper

Hum ok I will try with only the path of the executable. I thinks is not cover all the case but we can start with this i this it.

cchalop1 avatar Aug 26 '22 07:08 cchalop1

Couple comments and build looks to be failling. If we can resolve those, would love to get this merged!

JakeCooper avatar Sep 02 '22 02:09 JakeCooper