Closed AttilaTheFun closed 1 year ago
I see the issue. One of the filenames in this directory is !=(_:_:).json
. Bazel is choking on that combination of characters as a valid target name.
The rules_spm
project is lightly deprecated. There are some limitations with its design. However, I am actively working on swift_bazel. It is designed to replace rules_spm
and provide other niceties like a Swift Gazelle extension. I would recommend trying swift_bazel
to bring in those external Swift packages.
(The file should not be a problem if you use swift_bazel
. The Swift package manifest does not reference the file. So, it should not appear in any of the Bazel build files that are generated.)
Ah okay! I made it further with swift_bazel, but I encountered this new error when trying to archive the app for the App Store: https://github.com/cgrindel/swift_bazel/issues/182 I went into more detail here: https://github.com/bazelbuild/rules_apple/issues/1814 Because I wasn't sure which side this issue was on (rules_apple or swift_bazel)
Hi! I'm trying to use rules_spm to get one of my apps building with Bazel.
I tried to follow your Quickstart guide and I'm getting this error from one of my swift package dependencies:
This is the Swift Package it appears to be failing on: https://github.com/Peter-Schorn/SpotifyAPI/blob/master/Package.swift
My WORKSPACE.bzl has:
And my BUILD file has: