Skip to content

Commit

Permalink
Improve Build Nitro Locally page
Browse files Browse the repository at this point in the history
- Update Nitro version tag.
- Remove gvm from brew install.
- Bump golangci-lint to 1.58.2 (latest).
- Set environment variables for brew LLVM.
- Install rust nightly.
  • Loading branch information
gligneul committed May 22, 2024
1 parent fb04047 commit b082759
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zprofile && source ~/.zprofile
Install essentials:

```bash
brew install git curl make cmake npm go gvm golangci-lint wabt llvm gotestsum
brew install git curl make cmake npm go golangci-lint wabt llvm gotestsum
echo 'export PATH="/opt/homebrew/opt/llvm/bin:$PATH"' >> ~/.zshrc
echo 'export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"' >> ~/.zshrc
echo 'export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"' >> ~/.zshrc
npm install --global yarn
sudo mkdir -p /usr/local/bin
sudo ln -s /opt/homebrew/opt/llvm/bin/wasm-ld /usr/local/bin/wasm-ld
Expand Down Expand Up @@ -140,6 +143,8 @@ rustup default 1.73
rustup target add wasm32-unknown-unknown --toolchain 1.73
rustup target add wasm32-wasi --toolchain 1.73
cargo install cbindgen
rustup install nightly
rustup component add rust-src --toolchain nightly
```

### Step 7. Configure Go [1.21](https://github.com/moovweb/gvm)
Expand All @@ -165,7 +170,7 @@ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/bins
source "$HOME/.gvm/scripts/gvm"
gvm install go1.21
gvm use go1.21 --default
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.2
```

If you use zsh, replace `bash` with `zsh`.
Expand Down
2 changes: 1 addition & 1 deletion website/src/resources/globalVars.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const globalVars = {

// Nitro Github references
nitroRepositorySlug: 'nitro',
nitroVersionTag: 'v2.3.3',
nitroVersionTag: 'v2.3.4',
nitroPathToPrecompiles: 'precompiles',

nitroContractsRepositorySlug: 'nitro-contracts',
Expand Down

0 comments on commit b082759

Please sign in to comment.