ord icon indicating copy to clipboard operation
ord copied to clipboard

How to update ord?

Open DanielHook15 opened this issue 2 years ago • 13 comments

I have installed version 0.5.0 by building it from source as follows:

git clone https://github.com/casey/ord.git cd ord cargo build --release

What is the correct way to update it to the newest version of ord?

DanielHook15 avatar Feb 21 '23 23:02 DanielHook15

@DanielHook15 git pull to "pull" latest commits and build again with cargo build --release.

dude513 avatar Feb 21 '23 23:02 dude513

Thank you for the fast help! This means in total to run the following lines?

git pull https://github.com/casey/ord.git cd ord cargo build --release

DanielHook15 avatar Feb 21 '23 23:02 DanielHook15

Thank you for the fast help! This means in total to run the following lines?

git pull https://github.com/casey/ord.git cd ord cargo build --release

cd ord
git pull
cargo build --release

dude513 avatar Feb 22 '23 17:02 dude513

That works, thanks!

DanielHook15 avatar Feb 22 '23 17:02 DanielHook15

Just doing a git pull will put you at the latest commit, which could be unstable.

You really want to be on the latest release. To do that run

git fetch
git checkout 0.5.1

andrewtoth avatar Feb 23 '23 01:02 andrewtoth

Thanks a lot for this important correction!

DanielHook15 avatar Feb 23 '23 02:02 DanielHook15

Would someone be able to share what commands to run in Linux to get the update? I got lot a little bit above with the git fetch and then git clone

Thanks!

pavillag avatar Mar 09 '23 01:03 pavillag

cd ord git fetch git checkout 0.5.1 cargo build --release

DanielHook15 avatar Mar 09 '23 01:03 DanielHook15

Thank you for the patience with all the questions. I just can't find an ord directory. Should it be in my /bin directory?

pavillag avatar Mar 09 '23 01:03 pavillag

First run git clone https://github.com/casey/ord.

andrewtoth avatar Mar 09 '23 02:03 andrewtoth

Thank you! That worked for me!

For other people that end up looking, this is what I ran:

git clone https://github.com/casey/ord.git cd ord git checkout 0.5.1 cargo build --release

pavillag avatar Mar 09 '23 02:03 pavillag

Ran cargo build --release and let it finish. Now after running ord --version I still get 0.5. Am I missing something?

image

pavillag avatar Mar 09 '23 02:03 pavillag

Ok figured it out. Here are additional steps:

git clone https://github.com/casey/ord.git
cd ord
git checkout 0.5.1
cargo build --release

which ord This gives you a path cd target/release ./ord --version - Should show version you are trying to install cp ord + [PATH ABOVE WHEN YOU RAN WHICH ORD]

pavillag avatar Mar 09 '23 14:03 pavillag