turbo icon indicating copy to clipboard operation
turbo copied to clipboard

`--api` and `--team` CLI options are ignored for `turbo run`

Open AlCalzone opened this issue 3 years ago • 0 comments
trafficstars

What version of Turborepo are you using?

1.4.7-canary.0 and later

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

Yarn v2/v3 (node_modules linker only)

What operating system are you using?

Linux

Describe the Bug

Starting in v1.4.7-canary.0, turbo run ignores the --api and --team CLI options and always uses a local cache. I'm using https://github.com/felixmosh/turborepo-gh-artifacts for Github Actions caching and after upgrading turbo due to another bugfix, my builds are no longer cached. By running the server binary in that action locally, I can see that no HTTP requests are made on 1.4.7-canary.0 and later versions. When going back to 1.4.6 this works again.

One workaround is creating an (undocumented) .turbo/config.json file with a content similar to this

{
	"apiurl": "http://127.0.0.1:9080",
	"teamid": "me"
}

after which the HTTP requests start happening again.

Expected Behavior

turbo run should respect these CLI options or have an official way of configuring them.

To Reproduce

Upgrade to 1.4.7-canary.0 or later, attempt remote caching on a custom URL using the --api and --team CLI options, notice cache misses all the time.

AlCalzone avatar Sep 22 '22 13:09 AlCalzone