-
Notifications
You must be signed in to change notification settings - Fork 4.1k
bazel: yarn download error on freebsd upon dev build cockroach #74208
Copy link
Copy link
Closed
Labels
A-build-systemB-os-bsdIssues specific to a BSD OS (non-macOS)Issues specific to a BSD OS (non-macOS)C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-dev-inf
Description
Describe the problem
kena@kenax ....com/cockroachdb/cockroach % ./dev build cockroach
TMPDIR set to /tmp/tmp.pt7YeG66
$ bazel build //pkg/cmd/cockroach:cockroach --config=with_ui
INFO: Build option --define has changed, discarding analysis cache.
INFO: Repository npm instantiated at:
/data/home/kena/src/go/src/github.com/cockroachdb/cockroach/WORKSPACE:177:13: in <toplevel>
/data/home/kena/.cache/bazel/_bazel_kena/9b9f53b7334495d6a871cbb472c466bb/external/build_bazel_rules_nodejs/index.bzl:83:18: in yarn_install
Repository rule yarn_install defined at:
/data/home/kena/.cache/bazel/_bazel_kena/9b9f53b7334495d6a871cbb472c466bb/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:917:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'npm':
Traceback (most recent call last):
File "/data/home/kena/.cache/bazel/_bazel_kena/9b9f53b7334495d6a871cbb472c466bb/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 813, column 36, in _yarn_install_impl
is_windows_host = is_windows_os(repository_ctx)
File "/data/home/kena/.cache/bazel/_bazel_kena/9b9f53b7334495d6a871cbb472c466bb/external/build_bazel_rules_nodejs/nodejs/private/os_name.bzl", line 65, column 19, in is_windows_os
return os_name(rctx) == OS_NAMES[0]
File "/data/home/kena/.cache/bazel/_bazel_kena/9b9f53b7334495d6a871cbb472c466bb/external/build_bazel_rules_nodejs/nodejs/private/os_name.bzl", line 62, column 9, in os_name
fail("Unsupported operating system {} architecture {}".format(os_name, arch))
Error in fail: Unsupported operating system freebsd architecture amd64
To Reproduce
freebsd 13, run the command above
Expected behavior
Either:
- the thing works as-is, or
- there's some information in a README file about how to tell the tool to use a locally-installed yarn
(NB: make build works)
Epic CRDB-8036
Jira issue: CRDB-11971
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-build-systemB-os-bsdIssues specific to a BSD OS (non-macOS)Issues specific to a BSD OS (non-macOS)C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-dev-inf