You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into the same issue with both the v1.3.0 and v1.2.1 releases, running local/install_deps.bash on Ubuntu 18.04 I get the following error:
Running: bazel run //local:create_gopath (cwd='src')
| Extracting Bazel installation...
| Starting local Bazel server and connecting to it...
| Loading:
| Loading: 0 packages loaded
| Loading: 0 packages loaded
| Loading: 0 packages loaded
| Analyzing: target //local:create_gopath (1 packages loaded, 0 targets configured)
| Analyzing: target //local:create_gopath (7 packages loaded, 17 targets configured)
| Analyzing: target //local:create_gopath (7 packages loaded, 17 targets configured)
| Analyzing: target //local:create_gopath (7 packages loaded, 17 targets configured)
| Analyzing: target //local:create_gopath (7 packages loaded, 17 targets configured)
| ERROR: /home/localuser/.cache/bazel/_bazel_localuser/de65168dfbbea5a8f0776c717b698172/external/io_bazel_rules_go/BUILD.bazel:62:1: in go_context_data rule @io_bazel_rules_go//:go_context_data:
| Traceback (most recent call last):
| File "/home/localuser/.cache/bazel/_bazel_localuser/de65168dfbbea5a8f0776c717b698172/external/io_bazel_rules_go/BUILD.bazel", line 62
| go_context_data(name = 'go_context_data')
| File "/home/localuser/.cache/bazel/_bazel_localuser/de65168dfbbea5a8f0776c717b698172/external/io_bazel_rules_go/go/private/context.bzl", line 396, in _go_context_data_impl
| cc_common.configure_features(cc_toolchain = cc_toolchain, reque..., ...)
| Incompatible flag --incompatible_require_ctx_in_configure_features has been flipped, and the mandatory parameter 'ctx' of cc_common.configure_features is missing. Please add 'ctx' as a named parameter. See https://github.com/bazelbuild/bazel/issues/7793 for details.
| ERROR: Analysis of target '//local:create_gopath' failed; build aborted: Analysis of target '@io_bazel_rules_go//:go_context_data' failed; build aborted
| INFO: Elapsed time: 48.634s
I tried adding the ctx parameter as suggested in the bazel issue, but then I get a different error:
ERROR: /home/localuser/.cache/bazel/_bazel_localuser/de65168dfbbea5a8f0776c717b698172/external/io_bazel_rules_go/BUILD.bazel:62:1: in go_context_data rule @io_bazel_rules_go//:go_context_data:
Traceback (most recent call last):
File "/home/localuser/.cache/bazel/_bazel_localuser/de65168dfbbea5a8f0776c717b698172/external/io_bazel_rules_go/BUILD.bazel", line 62
go_context_data(name = 'go_context_data')
File "/home/localuser/.cache/bazel/_bazel_localuser/de65168dfbbea5a8f0776c717b698172/external/io_bazel_rules_go/go/private/context.bzl", line 396, in _go_context_data_impl
cc_common.configure_features(ctx = ctx, cc_toolchain = cc_toolc..., <2 more arguments>)
go_context_data has to declare 'CppConfiguration' as a required fragment in target configuration in order to access it.
ERROR: Analysis of target '//local:create_gopath' failed; build aborted: Analysis of target '@io_bazel_rules_go//:go_context_data' failed; build aborted
INFO: Elapsed time: 0.754s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (12 packages loaded, 135 targets configured)
FAILED: Build did NOT complete successfully (12 packages loaded, 135 targets configured)
Not sure where to go from here?
The text was updated successfully, but these errors were encountered:
I ran into the same issue with both the v1.3.0 and v1.2.1 releases, running
local/install_deps.bash
on Ubuntu 18.04 I get the following error:I tried adding the
ctx
parameter as suggested in the bazel issue, but then I get a different error:Not sure where to go from here?
The text was updated successfully, but these errors were encountered: