-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Binary release of PodToBUILD / Bazel run support (#60)
This PR adds the ability to perform release builds of `PodToBUILD` through githubs command line automation. Usage: A user can point rules_pods at a release, and utilize the `repository_rule`. http_archive( name = "rules_pods", urls = ["https://github.com/pinterest/PodToBUILD/releases/download/__RELEASE__/PodToBUILD.zip"], ) Additionally: Add the ability to `bazel run` for vendorizing pods. It creates a bazel target for `update_pods`. If the user is running a release package, then the `Makefile` noops the build, otherwise, source builds run with Bazel as expected. For this method, the user can add rules_pods to the workspace in either a release `or` a source package.
- Loading branch information
1 parent
f3d6feb
commit 781cb9f
Showing
6 changed files
with
91 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# Export this file for the repository_rule case | ||
exports_files(["RepoTools"]) | ||
|
||
# `update_pods` Vendorizes pods | ||
sh_binary( | ||
name = "RepoToolsStub", | ||
srcs = ["RepoToolsStub"], | ||
visibility = ['//visibility:public'] | ||
name = "update_pods", | ||
srcs = ["update_pods.py"], | ||
# Load all vendored srcs into the program | ||
data = ["//BazelExtensions:vendored_srcs", "RepoTools"], | ||
visibility = ["//visibility:public"] | ||
) | ||
|
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