bazelbuild / rules_cc

C++ Rules for Bazel
https://bazel.build
Apache License 2.0
176 stars 88 forks source link

rules_cc is failing at Bazel@HEAD #195

Closed sgowroji closed 10 months ago

sgowroji commented 10 months ago

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3301#018a8791-780b-470b-9b0b-41c40da7ee69

Platform : Macos, Ubunut, Windows

Logs

ERROR: /private/var/tmp/_bazel_buildkite/be6bfc8546aed26e111936e4b3a01747/external/io_bazel_rules_go/go/private/context.bzl:556:23: Use of Starlark transition without allowlist attribute '_allowlist_function_transition'. See Starlark transitions documentation for details and usage: @io_bazel_rules_go//go/private:context.bzl NORMAL
(06:07:18) WARNING: Target pattern parsing failed.
(06:07:18) ERROR: Skipping '//tools/migration:all': while parsing '//tools/migration:all': error loading package 'tools/migration': at /private/var/tmp/_bazel_buildkite/be6bfc8546aed26e111936e4b3a01747/external/io_bazel_rules_go/go/def.bzl:26:5: initialization of module 'go/private/context.bzl' failed
(06:07:18) ERROR: while parsing '//tools/migration:all': error loading package 'tools/migration': at 

Steps:

git clone https://github.com/bazelbuild/rules_cc.git && cd rules_cc
git reset 7760d83db7e57961b2d865f75788b3b5f5db6ab8 --hard
export USE_BAZEL_VERSION=07e0d316a345a3cb2593f98525320590bbc56e30
bazel build ...

Culprit : https://github.com/bazelbuild/bazel/commit/10a46b1e85f0b5bf8564c125dd02cd4e70017452

CC Greenteam @meteorcloudy

comius commented 10 months ago

I didn't expect that to happen.

The problem is in rules_go, I'll prepare a fix.

comius commented 10 months ago

Correction, problem is in too old version of rules_go in rules_cc.

comius commented 10 months ago

Fix pending internally.