You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
I am trying to use https://github.com/b3ll/Motion in a Bazel project and we are using rules_spm. However, Motion includes a doc directory with the outputs of DocC which will name files based on function names. This means that files will have : within them. Example: https://github.com/b3ll/Motion/blob/main/docs/data/documentation/motion/animation/stop(resolveimmediately:postvaluechanged:).json
Unfortunately the :all_srcs target in rules_spm has srcs = glob([**]) which ends up including these JSON files. And that causes the build to fail:
ERROR: /private/var/tmp/_bazel_amonshiz/ca4217c5c6bfda9c1ca9031d2ae3cca8/external/swift_pkgs/BUILD.bazel:12:10: @swift_pkgs//:all_srcs: invalid label 'spm_build/checkouts/Motion/docs/data/documentation/motion/animation/stop(resolveimmediately:postvaluechanged:).json' in element 336 of attribute 'srcs' in 'filegroup' rule: invalid target name 'spm_build/checkouts/Motion/docs/data/documentation/motion/animation/stop(resolveimmediately:postvaluechanged:).json': target names may not contain ':'
ERROR: Evaluation of query "@swift_pkgs//:all_srcs" failed due to BUILD file errors
Loading: 0 packages loaded
I don't yet have a great answer off the top of my head except for maybe a way to provide custom srcs or even an exclude_dirs?
The text was updated successfully, but these errors were encountered:
I am trying to use https://github.com/b3ll/Motion in a Bazel project and we are using
rules_spm
. However, Motion includes adoc
directory with the outputs of DocC which will name files based on function names. This means that files will have:
within them. Example:https://github.com/b3ll/Motion/blob/main/docs/data/documentation/motion/animation/stop(resolveimmediately:postvaluechanged:).json
Unfortunately the
:all_srcs
target in rules_spm hassrcs = glob([**])
which ends up including these JSON files. And that causes the build to fail:I don't yet have a great answer off the top of my head except for maybe a way to provide custom
srcs
or even anexclude_dirs
?The text was updated successfully, but these errors were encountered: