Skip to content

Commit

Permalink
Merge pull request #763 from filecoin-project/phi/fix-latest-v-cmd
Browse files Browse the repository at this point in the history
fix: cmd for getting latest release tag
  • Loading branch information
rjan90 authored Sep 11, 2024
2 parents 1cdb69a + 814f6fe commit d2e12bb
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion content/en/lotus/install/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Once all the dependencies are installed, you can build and install Lotus.
```shell
git pull
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Node release
LATEST_RELEASE=$(git tag -l 'v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Node release
git checkout $LATEST_RELEASE
```
Expand Down
2 changes: 1 addition & 1 deletion content/en/lotus/install/lotus-lite.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Because of the novel architecture of the M1-based Mac computers, some specific e
```shell
cd extern/filecoin-ffi
git fetch -a
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Node release
LATEST_RELEASE=$(git tag -l 'v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Node release
git checkout $LATEST_RELEASE
```

Expand Down
4 changes: 2 additions & 2 deletions content/en/lotus/install/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ The installation instructions are different depending on which CPU is in your Ma
```shell
git pull
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Node release
LATEST_RELEASE=$(git tag -l 'v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Node release
git checkout $LATEST_RELEASE
```
Expand Down Expand Up @@ -160,7 +160,7 @@ These instructions are for installing Lotus on an Intel Mac. If you have an M1-b
```shell
git pull
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Node release
LATEST_RELEASE=$(git tag -l 'v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Node release
git checkout $LATEST_RELEASE
```
Expand Down
2 changes: 1 addition & 1 deletion content/en/lotus/manage/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Usually, if you are updating Lotus, it as simple as rebuilding and re-installing

```shell
git pull
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Node release
LATEST_RELEASE=$(git tag -l 'v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Node release
git checkout $LATEST_RELEASE
# if you need a specific release use
# git checkout <tag_or_release>
Expand Down
2 changes: 1 addition & 1 deletion content/en/tutorials/lotus-miner/add-seal-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ This section will cover the installation, configuration and running a Lotus seal
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc
git clone https://github.com/filecoin-project/lotus.git
cd lotus/
LATEST_RELEASE=$(git tag -l 'miner/v*' | sort -V -r | head -n 1) # Finds the latest Lotus Miner release
LATEST_RELEASE=$(git tag -l 'miner/v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Miner release
git checkout $LATEST_RELEASE
export CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__"
export CGO_CFLAGS="-D__BLST_PORTABLE__"
Expand Down
4 changes: 2 additions & 2 deletions content/en/tutorials/lotus-miner/run-a-miner.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This section will cover the installation, configuration and starting a lotus nod
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc
git clone https://github.com/filecoin-project/lotus.git
cd lotus/
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Node release
LATEST_RELEASE=$(git tag -l 'v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Node release
git checkout $LATEST_RELEASE
export CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__"
export CGO_CFLAGS="-D__BLST_PORTABLE__"
Expand Down Expand Up @@ -155,7 +155,7 @@ This section will cover the installation, configuration, and how to start the lo
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc
git clone https://github.com/filecoin-project/lotus.git
cd lotus/
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Miner release
LATEST_RELEASE=$(git tag -l 'miner/v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Miner release
git checkout $LATEST_RELEASE
export CGO_CFLAGS_ALLOW="-D__BLST_PORTABLE__"
export CGO_CFLAGS="-D__BLST_PORTABLE__"
Expand Down
2 changes: 1 addition & 1 deletion content/en/tutorials/lotus/build-with-lotus-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The following steps walk through how to install a Lotus node.. Further, more det
```shell
git clone https://github.com/filecoin-project/lotus.git
cd lotus
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Node release
LATEST_RELEASE=$(git tag -l 'v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Node release
git checkout $LATEST_RELEASE # if you need a specific release use
git checkout <tag_or_release>
```
Expand Down
2 changes: 1 addition & 1 deletion content/en/tutorials/lotus/store-and-retrieve/set-up.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ If you prefer to build from source, try these steps.
5. Checkout the latest release

```shell
LATEST_RELEASE=$(git tag -l 'v*' | sort -V -r | head -n 1) # Finds the latest Lotus Node release
LATEST_RELEASE=$(git tag -l 'v*' | grep -v "-" | sort -V -r | head -n 1) # Finds the latest Lotus Node release
git checkout $LATEST_RELEASE ```

6. Setup some environment variables correctly
Expand Down

0 comments on commit d2e12bb

Please sign in to comment.