Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bazel CI]Error in glob: glob pattern '*.jar' didn't match anything #2555

Open
sgowroji opened this issue Oct 10, 2024 · 0 comments
Open

[Bazel CI]Error in glob: glob pattern '*.jar' didn't match anything #2555

sgowroji opened this issue Oct 10, 2024 · 0 comments

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4189#019274a0-a407-4de1-9306-84ef2daf9eb2

Platform: Ubuntu

Logs:

ERROR: Traceback (most recent call last):
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/d4ff19de6e746f1679fe4bc1387beb8f/external/stardoc+/stardoc/BUILD", line 72, column 16, in <toplevel>
		srcs = glob(["*.jar"]),
Error in glob: glob pattern '*.jar' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).
(04:21:52) ERROR: /var/lib/buildkite-agent/builds/bk-docker-8rpq/bazel-org-repo-root/rules_apple/doc/BUILD.bazel:27:12: Target '@@stardoc+//stardoc:templates/markdown_tables/repository_rule.vm' contains an error and its package is in error and referenced by '//doc:visionos.doc_doc'
(04:21:52) ERROR: Analysis of target '//doc:check_visionos.doc' failed; build aborted: Analysis failed
(04:21:52) INFO: Elapsed time: 2.420s, Critical Path: 0.03s
(04:21:52) INFO: 1 process: 1 internal.
(04:21:52) ERROR: Build did NOT complete successfully
(04:21:52) ERROR: No test targets were found, yet testing was requested

Culprit: bazelbuild/bazel#8195

Steps:

git clone https://github.com/bazelbuild/rules_apple
git reset 2e45cefc23c1d7744d11be8fa8ba54d48b47465a  --hard
export USE_BAZEL_VERSION=788b6080f54c6ca5093526023dfd9b12b90403f8
bazel test doc/... 

CC Greenteam @fweikert

mattrobmattrob added a commit to mattrobmattrob/stardoc that referenced this issue Oct 10, 2024
For a ruleset like rules_apple that still supports Bazel 6, fix support on pre-`0.7.0` releases by strictly allowing an empty glob on the `//stardoc:distro_bins` to fix an issue like bazelbuild/rules_apple#2555.

Signed-off-by: Matt Robinson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant