bazelbuild / stardoc

Stardoc: Starlark Documentation Generator
Apache License 2.0
108 stars 45 forks source link

[Bazel CI] Errors: Stardoc integration test apple_basic fails with apple_common #262

Open sgowroji opened 2 days ago

sgowroji commented 2 days ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4278#019347c3-3e14-4150-bd8c-c779521297e2

Platform: Multiple

Logs:

ERROR: /var/lib/buildkite-agent/builds/bk-docker-65p6/bazel-org-repo-root/stardoc/test/testdata/apple_basic_test/input.bzl:4:12: apple_common may only be used from one of the following repositories or prefixes: @@_builtins//, @@apple_support//, @@bazel_tools//, @@local_config_cc//, @@rules_apple//, @@rules_cc//, @@rules_go//, @@rules_ios//, @@rules_swift//, @@stardoc//, @@tulsi//, test_starlark, tools/osx
ERROR: /var/lib/buildkite-agent/builds/bk-docker-65p6/bazel-org-repo-root/stardoc/test/testdata/apple_basic_test/input.bzl:5:12: apple_common may only be used from one of the following repositories or prefixes: @@_builtins//, @@apple_support//, @@bazel_tools//, @@local_config_cc//, @@rules_apple//, @@rules_cc//, @@rules_go//, @@rules_ios//, @@rules_swift//, @@stardoc//, @@tulsi//, test_starlark, tools/osx
ERROR: /var/lib/buildkite-agent/builds/bk-docker-65p6/bazel-org-repo-root/stardoc/test/BUILD:91:13: in src attribute of starlark_doc_extract rule //test:apple_basic_test_stardoc.extract: compilation of module 'test/testdata/apple_basic_test/input.bzl' failed. Since this rule was created by the macro 'stardoc_test', the error might have been caused by the macro implementation
ERROR: /var/lib/buildkite-agent/builds/bk-docker-65p6/bazel-org-repo-root/stardoc/test/BUILD:91:13: Analysis of target '//test:apple_basic_test_stardoc.extract' failed

Culprit:

Steps:

 git clone https://github.com/bazelbuild/stardoc
git reset 46fd77a446f00faddedd0467ce993b462fba3c8a  --hard
export USE_BAZEL_VERSION=4b37e244d0c73e7faa0d840069e80a63dfc1b580
bazel build //... 

CC Greenteam @meteorcloudy

meteorcloudy commented 2 days ago

Probably the same one as https://github.com/bazelbuild/bazel/issues/24375

FYI @pzembrod