Unable to build apple/swift-cassandra-client
builds fail with:
$ bazel build @@rules_swift_package_manager++swift_deps+swiftpkg_swift_cassandra_client//:Clibuv.rspm_c
external/rules_swift_package_manager++swift_deps+swiftpkg_swift_cassandra_client/Sources/Clibuv/libuv/src/timer.c:21:10: fatal error: 'uv.h' file not found
21 | #include "uv.h"
I think this is because swift-cassandra-client uses custom sources paths and excludes which causes rules_swiftpm to skip using <Target>/include has a public_includes path.
Do you have a repro that I can look at?
@cgrindel just put one together here: https://github.com/rauhul/rules_swiftpm-cassandra!
FYI. I started looking at this over the weekend, but ran out of time. If not before, I should be able to investigate further over the coming weekend.
@cgrindel let me know if theres any thing else I can do to help here! I've been really enjoying rule_swiftpm in general :)
Sorry for the radio silence. I have been heads down wrapping up a project at my day job. I will try to look at this over the weekend. However, if that doesn't happen, it will be another week or two before I can dig into this as I am on vacation next week.
For future reference, https://github.com/apple/swift-cassandra-client.
I made some progress trying to update rules_swift_package_manager to support the Cassandra client. I added code that detects the magical include directories even when srcs are specified. I broke some other examples, but I have not investigated those errors yet.
The next blocker for supporting Cassandra is the use of these header files that do not have a typical header extension. I need to think about how we will go about finding these files and making them available. 🤔