Skip to content

Commit

Permalink
Merge branch 'main' into github-renovate/gazelle-0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Sep 8, 2024
2 parents 7a9049c + 16d3d6d commit fa35bec
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Add a dependency on `rules_swift_package_manager`.

<!-- BEGIN MODULE SNIPPET -->
```python
bazel_dep(name = "rules_swift_package_manager", version = "0.36.0")
bazel_dep(name = "rules_swift_package_manager", version = "0.37.0")
```
<!-- END MODULE SNIPPET -->

Expand Down
2 changes: 1 addition & 1 deletion examples/nimble_example/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
),
.package(
url: "https://github.com/Quick/Nimble",
from: "13.3.0"
from: "13.4.0"
),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion examples/phone_number_kit/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import PackageDescription
let package = Package(
name: "PhoneNumberKitExample",
dependencies: [
.package(url: "https://github.com/marmelroy/PhoneNumberKit", from: "3.7.11"),
.package(url: "https://github.com/marmelroy/PhoneNumberKit", from: "3.8.0"),
]
)
2 changes: 1 addition & 1 deletion examples/shake_ios_example/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import PackageDescription
let package = Package(
name: "shake_ios_example",
dependencies: [
.package(url: "https://github.com/shakebugs/shake-ios", from: "17.0.0"),
.package(url: "https://github.com/shakebugs/shake-ios", from: "17.0.1"),
]
)
2 changes: 1 addition & 1 deletion swiftpkg/internal/swiftpkg_build_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _swift_target_build_file(pkg_ctx, target):

# Gate package_name behind swift tools version 5.9
if tools_version_major >= 6 or (tools_version_major == 5 and tools_version_minor >= 9):
attrs["package_name"] = target.label.repository_name.lstrip("@") + ".rspm"
attrs["package_name"] = pkg_ctx.pkg_info.name

target_deps = []
macro_targets = []
Expand Down
14 changes: 7 additions & 7 deletions swiftpkg/tests/swiftpkg_build_files_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ swift_library(
always_include_developer_search_paths = True,
copts = ["-DSWIFT_PACKAGE"],
module_name = "RegularSwiftTargetAsLibrary",
package_name = "swiftpkg_mypackage.rspm",
package_name = "MyPackage",
srcs = ["Source/RegularSwiftTargetAsLibrary/RegularSwiftTargetAsLibrary.swift"],
tags = ["manual"],
visibility = ["//:__subpackages__"],
Expand All @@ -516,7 +516,7 @@ swift_library(
copts = ["-DSWIFT_PACKAGE"],
deps = ["@swiftpkg_mypackage//:RegularSwiftTargetAsLibrary.rspm"],
module_name = "RegularTargetForExec",
package_name = "swiftpkg_mypackage.rspm",
package_name = "MyPackage",
srcs = ["Source/RegularTargetForExec/main.swift"],
tags = ["manual"],
visibility = ["//:__subpackages__"],
Expand All @@ -534,7 +534,7 @@ swift_test(
copts = ["-DSWIFT_PACKAGE"],
deps = ["@swiftpkg_mypackage//:RegularSwiftTargetAsLibrary.rspm"],
module_name = "RegularSwiftTargetAsLibraryTests",
package_name = "swiftpkg_mypackage.rspm",
package_name = "MyPackage",
srcs = ["Tests/RegularSwiftTargetAsLibraryTests/RegularSwiftTargetAsLibraryTests.swift"],
visibility = ["//:__subpackages__"],
)
Expand All @@ -561,7 +561,7 @@ swift_binary(
"//conditions:default": [],
}),
module_name = "SwiftExecutableTarget",
package_name = "swiftpkg_mypackage.rspm",
package_name = "MyPackage",
srcs = ["Source/SwiftExecutableTarget/main.swift"],
visibility = ["//:__subpackages__"],
)
Expand Down Expand Up @@ -737,7 +737,7 @@ swift_library(
"//conditions:default": [],
}),
module_name = "SwiftLibraryWithConditionalDep",
package_name = "swiftpkg_mypackage.rspm",
package_name = "MyPackage",
srcs = ["Source/SwiftLibraryWithConditionalDep/SwiftLibraryWithConditionalDep.swift"],
tags = ["manual"],
visibility = ["//:__subpackages__"],
Expand Down Expand Up @@ -807,7 +807,7 @@ swift_library(
],
generates_header = True,
module_name = "SwiftForObjcTarget",
package_name = "swiftpkg_mypackage.rspm",
package_name = "MyPackage",
srcs = ["Source/SwiftForObjcTarget/SwiftForObjcTarget.swift"],
tags = ["manual"],
visibility = ["//:__subpackages__"],
Expand Down Expand Up @@ -846,7 +846,7 @@ swift_library(
copts = ["-DSWIFT_PACKAGE"],
data = [":SwiftLibraryWithFilePathResource.rspm_resource_bundle"],
module_name = "SwiftLibraryWithFilePathResource",
package_name = "swiftpkg_mypackage.rspm",
package_name = "MyPackage",
srcs = [
"Source/SwiftLibraryWithFilePathResource/SwiftLibraryWithFilePathResource.swift",
":SwiftLibraryWithFilePathResource.rspm_resource_bundle_accessor",
Expand Down

0 comments on commit fa35bec

Please sign in to comment.