-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support storing Swift dependency files in a sub-package (#146)
- Add `swift_deps_index` attribute to `swift_update_packages`. - Update `vapor_example` to demonstrate storing the Swift dependency files in a sub-package. Closes #136.
- Loading branch information
Showing
17 changed files
with
1,295 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
load("@bazel_skylib//:bzl_library.bzl", "bzl_library") | ||
load("@cgrindel_swift_bazel//swiftpkg:defs.bzl", "swift_update_packages") | ||
|
||
# NOTE: If you decide to move the Swift dependency files like this example, do | ||
# not forget to update the `gazelle` declaration `//:update_build_files` to | ||
# point at the new location of the Swift dependency index JSON file. Also, the | ||
# `//:gazelle_bin target` must be visible to this package. | ||
|
||
# Ignore the Swift build folder | ||
# gazelle:exclude .build | ||
|
||
swift_update_packages( | ||
name = "update_pkgs", | ||
gazelle = "//:gazelle_bin", | ||
package_manifest = "swift/Package.swift", | ||
swift_deps = "swift/deps.bzl", | ||
swift_deps_index = "swift/deps_index.json", | ||
) | ||
|
||
bzl_library( | ||
name = "deps", | ||
srcs = ["deps.bzl"], | ||
visibility = ["//visibility:public"], | ||
deps = ["@cgrindel_swift_bazel//swiftpkg:defs"], | ||
) |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.