这是indexloc提供的服务,不要输入任何密码
Skip to content

--api and --team CLI options are ignored for turbo run #2040

@AlCalzone

Description

@AlCalzone

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions