rules_kotlin icon indicating copy to clipboard operation
rules_kotlin copied to clipboard

[Bazel CI] bazel: Lint starlark doc for kotlin packages fails with invalid repository name

Open sgowroji opened this issue 1 year ago • 1 comments

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4045#01913553-7d47-4e8f-8887-e0620b679dc0

Platform: Ubuntu

Logs:

ERROR: [0m/var/lib/buildkite-agent/builds/bk-docker-jsv6/bazel-org-repo-root/rules_kotlin/kotlin/BUILD:39:12: Generating proto for Starlark doc for lint failed: (Exit 1): lint_stardoc failed: error executing Stardoc command (from target //kotlin:lint) 
Exception: com.google.devtools.build.lib.cmdline.LabelSyntaxException: invalid repository name '@rules_java+': repo names may contain only A-Z, a-z, 0-9, '-', '_', '.' and '~' and must not start with '~'
Exception: invalid repository name '@rules_java+': repo names may contain only A-Z, a-z, 0-9, '-', '_', '.' and '~' and must not start with '~'
ERROR: [0m/var/lib/buildkite-agent/builds/bk-docker-jsv6/bazel-org-repo-root/rules_kotlin/kotlin/BUILD:39:12: Generating proto for Starlark doc for jvm failed: (Exit 1): jvm_stardoc failed: error executing Stardoc command (from target //kotlin:jvm) 
Exception: com.google.devtools.build.lib.cmdline.LabelSyntaxException: invalid repository name '@+rules_kotlin_extensions+com_github_jetbrains_kotlin': repo names may contain only A-Z, a-z, 0-9, '-', '_', '.' and '~' and must not start with '~'
Exception: invalid repository name '@+rules_kotlin_extensions+com_github_jetbrains_kotlin': repo names may contain only A-Z, a-z, 0-9, '-', '_', '.' and '~' and must not start with '~'

Culprit:

Steps:

git clone https://github.com/bazelbuild/rules_kotlin
git reset 9cfccc37e6e6e3d16595cb79f8baf4c20963d166  --hard
export USE_BAZEL_VERSION=c2d587a8020e1120ad15c2d3d3aa4d04b7301410
bazel build //kotlin:stardoc 

CC Greenteam @meteorcloudy

sgowroji avatar Aug 09 '24 06:08 sgowroji

Probably caused by https://github.com/bazelbuild/bazel/commit/60924fdc2972184494f6382d39e8c786aa14b9a9

meteorcloudy avatar Aug 09 '24 08:08 meteorcloudy