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

Remote Cache DNS failures on Mac #941

@finn-orsini

Description

@finn-orsini

What version of Turborepo are you using?

1.1.10

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

pnpm (likely all)

What operating system are you using?

Mac

Describe the Bug

When building with a remote cache on an internal host, i.e. pnpm turbo run build --api="https://<internal_host>" ...,
all requests fail due to failed DNS lookup.

2022-03-24T21:31:10.266-0400 [ERROR] run: request failed: error="Get \"https://<internal-host>/v8/artifacts/0a1e1749d7886ac6?slug=***\": dial tcp: lookup <internal-host> on 75.75.75.75:53: no such host" method=GET url=https://<internal-host>/v8/artifacts/0a1e1749d7886ac6?slug=***

Expected Behavior

TurboRepo is able to hit internal remote cache hosts on any OS without DNS lookup failures.

Notes

This is a known issue with golang name resolution on Darwin.

The situation becomes even more complicated when cross-compiling, as described in the discussion of this issue. My understanding from the above issue:

Hoping it's possible to update the build process to build the darwin distro on darwin, or document how MacOS users should proceed if there are other ways to workaround the issue. (Or other options I'm not thinking of!)

To Reproduce

On MacOS, specify a remote cache using an internal hostname. Run with -vvv to see error logs.

Metadata

Metadata

Assignees

Labels

kind: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions