bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
311 stars 135 forks source link

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

Open sgowroji opened 1 day ago

sgowroji commented 1 day ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4170#019255cd-e649-4cf7-84a6-5978bf47db55

Platform: Ubuntu

Logs:


ERROR: Traceback (most recent call last):
--
  | File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ebac1964e1091a47f45364aefccc7762/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:35:38) ERROR: /var/lib/buildkite-agent/builds/bk-docker-zxpj/bazel-org-repo-root/rules_swift/doc/BUILD:107:8: Target '@@stardoc+//stardoc:templates/markdown_tables/func.vm' contains an error and its package is in error and referenced by '//doc:setup_doc'
  | (04:35:38) ERROR: Analysis of target '//doc:test_setup' failed; build aborted: Analysis failed
  | (04:35:38) INFO: Elapsed time: 2.806s, Critical Path: 0.03s
  | (04:35:38) INFO: 1 process: 1 internal.
  | (04:35:38) ERROR: Build did NOT complete successfully
  | (04:35:38) ERROR: No test targets were found, yet testing was requested
  | (04:35:38) FAILED:

Culprit:

Steps:

 git clone https://github.com/bazelbuild/rules_swift
git reset d8cc3ea13974efbe695f564fe2686a80ea3b6a20  --hard
export USE_BAZEL_VERSION=166eaa09f9cd31836df898ea236e1e0633a73b12
bazel test doc/... 

CC Greenteam @mai93

brentleyjones commented 21 hours ago

Looks like a Stardoc issue?