turbo: [turborepo]: ERROR Unable to find Go binary

What version of Turborepo are you using?

1.10.6

What package manager are you using / does the bug impact?

npm

What operating system are you using?

Linux

Describe the Bug

ERROR Unable to find Go binary. Please report this issue at https://github.com/vercel/turbo/issues and include your package manager and version along with the following information:
--
11:57:02.260 | os=linux
11:57:02.260 | arch=x86_64
11:57:02.260 | turbo-version=1.10.6
11:57:02.260 | turbo-bin=/vercel/path0/node_modules/turbo/bin/turbo
11:57:02.260 | go-turbo-bin=/vercel/path0/node_modules/turbo/bin/go-turbo
11:57:02.260 |  
11:57:02.260 | Error: Failed to execute turbo (Unable to locate Go binary).
11:57:02.274 | Error: Command "cd ../.. && npm run build:init" exited with 1
11:57:02.785 | BUILD_UTILS_SPAWN_1: Command "cd ../.. && npm run build:init" exited with 1

Expected Behavior

Should find Go binary

To Reproduce

Build step in Vercel

Reproduction Repo

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 21 (4 by maintainers)

Commits related to this issue

Most upvoted comments

This happened to me as well after upgrading from v1.9.1 => v1.10.11. Worked locally but broke on CI (GH actions with npm). Upgrading to v1.10.12 (which had coincidentally just come out) solved the issue.

Error: Failed to execute turbo (Unable to locate Go binary).
ERROR Unable to find Go binary. Please report this issue at https://github.com/vercel/turbo/issues and include your package manager and version along with the following information:
        os=linux
        arch=x86_64
        turbo-version=1.10.11
        turbo-bin=/home/runner/work/interact/interact/node_modules/turbo/bin/downloaded-turbo-linux-64-turbo
        go-turbo-bin=/home/runner/work/interact/interact/node_modules/turbo/bin/go-turbo

Downgrading to turbo 1.9.7 fixed this for me

I’m facing the same issue on my local machine.

I’ve installed Go using Homebrew.

Turborepo version: 1.10.6 package manager: pnpm operating system: macOS Ventura 13.2.1

os=macos
arch=x86_64
turbo-version=1.10.6
turbo-bin=/Users/hassan/Library/pnpm/global/5/.pnpm/turbo@1.10.6/node_modules/turbo/bin/turbo
go-turbo-bin=/Users/hassan/Library/pnpm/global/5/.pnpm/turbo@1.10.6/node_modules/turbo/bin/go-turbo     

This appears to work fine locally, but the build step fails on Vercel.

ERROR Unable to find Go binary. Please report this issue at https://github.com/vercel/turbo/issues and include your package manager and version along with the following information:
--
12:04:44.369 | os=linux
12:04:44.369 | arch=x86_64
12:04:44.369 | turbo-version=1.10.6
12:04:44.369 | turbo-bin=/vercel/path0/node_modules/turbo/bin/turbo
12:04:44.369 | go-turbo-bin=/vercel/path0/node_modules/turbo/bin/go-turbo
12:04:44.369 |  
12:04:44.369 | Error: Failed to execute turbo (Unable to locate Go binary).