From 922ba5d8e4b206cbe14b57fa8e6db67c498f6d47 Mon Sep 17 00:00:00 2001 From: Thox <90353329+DIGIX666@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:19:21 +0100 Subject: [PATCH] docs: add new Prerequisites (#1722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I propose this change in the prerequisites of the [getting-started](https://docs.gno.land/getting-started/local-setup) because @kazai777 and I (mac apple silicon users) encountered a `command not found` with the given commands. And by checking with `echo $GOPATH`, the path was empty. We noticed that in the newer versions of Go, one must manually add the path. However, thanks to @mous1985 , we saw that on Ubuntu, it was set automatically. Warning -> this also needs to be verified on Windows.
Contributors' checklist... - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
--------- Co-authored-by: théo dub Co-authored-by: Leon Hudak <33522493+leohhhn@users.noreply.github.com> --- docs/getting-started/local-setup.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/getting-started/local-setup.md b/docs/getting-started/local-setup.md index 753b6688b1a..2d2c1b7ab58 100644 --- a/docs/getting-started/local-setup.md +++ b/docs/getting-started/local-setup.md @@ -15,6 +15,13 @@ and validate that they are correctly configured to run on your machine. - **Git** - **`make` (for running Makefiles)** - **Go 19+** +- **Go Environment Setup**: + - Make sure `$GOPATH` is well-defined, and `$GOPATH/bin` is added to your `$PATH` variable. + - To do this, you can add the following line to your `.bashrc`, `.zshrc` or other config file: +``` +export GOPATH=$HOME/go +export PATH=$GOPATH/bin:$PATH +``` ## 1. Cloning the repository