Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rules_swift 1.2.0 #247

Merged
merged 8 commits into from Nov 3, 2022
Merged

Conversation

BalestraPatrick
Copy link
Member

@BalestraPatrick BalestraPatrick commented Oct 31, 2022

This PR adds the current release of rules_swift to the central registry. The patch will be useless in the next version that we'll hopefully cut soon.

@fmeum
Copy link
Contributor

fmeum commented Oct 31, 2022

@BalestraPatrick Please add repository information to metadata.json similar to

"github:bazelbuild/rules_go"
.

bazel_dep(name = "bazel_skylib", version = "1.1.1")
bazel_dep(name = "apple_support", repo_name = "build_bazel_apple_support", version = "1.3.1")
bazel_dep(name = "rules_cc", version = "0.0.2")
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "3.19.2") # To be removed once rules_proto is bzlmod-ready.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rules_proto is available in the BCR and could be added as a module dependency.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only version available is 4.0.0 which doesn't depend on protobuf itself, so this is why this is needed: https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/rules_proto/4.0.0/MODULE.bazel

If we check-in a newer version of 4.0.0, we could probably specify it as a module dependency.
https://github.com/bazelbuild/rules_proto/blob/master/MODULE.bazel

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can certainly keep it this way for the first version, but having an updated version of rules_proto would of course prevent potentially duplicating it in the dependency tree.

"com_github_apple_swift_nio_transport_services",
"com_github_apple_swift_nio_extras",
"com_github_apple_swift_log",
"com_github_nlohmann_json",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't have to be done as part of this PR, but this library would be very useful to have as a Bazel module.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely.

@fmeum
Copy link
Contributor

fmeum commented Nov 2, 2022

@BalestraPatrick Unblocked, but there is a different issue now. The bzl file defining extensions isn't found.

@BalestraPatrick
Copy link
Member Author

Yeah that's expected, the module extension was added after that release was cut. I can add a patch for this specific release.


matrix:
platform:
- ubuntu2004
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once bazelbuild/rules_swift#832 is merged, we could try adding Windows here as well.

@BalestraPatrick BalestraPatrick marked this pull request as ready for review November 3, 2022 13:17
@meteorcloudy meteorcloudy merged commit f7b5064 into bazelbuild:main Nov 3, 2022
@BalestraPatrick BalestraPatrick deleted the rules-swift branch November 3, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants