# Developing Go SDK and contributing to Go

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

GoLand is a Go IDE that you can use to write Go code for your applications. But what if you want to work on the Go language itself and contribute to its development? This tutorial shows you how to configure the IDE for that purpose in just a few steps.

## Step 1. Clone the Go sources

Procedure:

1. On the Welcome screen, click Clone Repository.

2. In the Clone Repository dialog, select Git from the Version control list.

3. In the URL field, paste the following URL: `https://go.googlesource.com/go`.

4. In the Directory field, specify the directory where you want to store the Go project.

5. Click Clone.

6. Open settings `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) and navigate to `Go | Go Modules`.

Ensure that the Enable Go modules integration checkbox is cleared.

The Go sources include `go.mod` files that are used for tests. To disable these tests, turn off Go Modules integration.

## Step 2. Compile Go

> **Note:**
> To build Go, install a supported bootstrap Go toolchain and set `GOROOT_BOOTSTRAP` to its root directory. The required version depends on the Go source version that you build. For details, see [Install Go from source](https://go.dev/doc/install/source).

Procedure:

1. In the Terminal tool window (`View | Tool Windows | Terminal`), navigate to the `src` directory by running: `cd src`.

2. From the `src` directory, run the following command to compile Go:

* `./make.bash` for Linux and macOS

* `make.bat` for Windows

### Troubleshooting

| Error | Possible solution |
| --- | --- |
|  `ERROR: Cannot find <path_to_go>. Set $GOROOT_BOOTSTRAP to a working Go tree >= Go <version>.`  |    Open settings `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) and navigate to `Tools \| Terminal`.     Click Browse (![Browse icon](https://resources.jetbrains.com/help/img/idea/2026.3/app.vcs.changelist_dark.svg)) in the Environment Variables field and add this variable:   `GOROOT_BOOTSTRAP = <path_to_go_sdk>`  |

## Step 3. Set the cloned Go project as Go SDK

To use the cloned Go source as your SDK, set the root directory as the Go SDK. This enables code completion, navigation, refactorings, and other IDE features.

Procedure:

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Go | GOROOT`.

2. Click the Add SDK button ![Add SDK icon](https://resources.jetbrains.com/help/img/idea/2026.3/app.general.inlineAddHover.svg) and select Local.

3. In the file browser, navigate to the root directory of the cloned Go source and click Open.

4. Click OK.

## Step 4. Create a branch for your changes

Procedure:

1. Go to `Git | Branches` and select New Branch.

2. In the Create New Branch dialog, enter a name for the new branch and click OK.

> **Tip:**
> For more information about working with version control, refer to [Version control](version-control-integration.html).

## Step 5. Run tests

After you have made your changes, run the tests that you created. You can also run all tests included in the Go source project.

Procedure:

1. In the Terminal tool window (`View | Tool Windows | Terminal`), navigate to the `src` directory: `cd src`.

2. From the `src` directory, run:

* `./all.bash` for Linux and macOS

* `all.bat` for Windows

## Step 6. Submit a change for review

Go uses Gerrit for code review. Follow the [Go contribution guide](https://go.dev/doc/contribute) to configure `git-codereview`, create a change, and send it to Gerrit.

