-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating rules according to README.md instructions, adding flatc binaries TODO: * add sha256 hashes to the binaries * add test to verify that we can generate java code
- Loading branch information
1 parent
fba3b7e
commit 528e0f9
Showing
26 changed files
with
150 additions
and
147 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"homepage": "https://github.com/myorg/rules_mylang", | ||
"homepage": "https://github.com/bookingcom/rules_flatbuffers", | ||
"maintainers": [], | ||
"repository": ["github:myorg/rules_mylang"], | ||
"repository": ["github:bookingcom/rules_flatbuffers"], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
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
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,7 +1,7 @@ | ||
bazel_dep(name = "com_myorg_rules_mylang", version = "0.0.0", dev_dependency = True) | ||
bazel_dep(name = "com_bookingcom_rules_flatbuffers", version = "0.0.0", dev_dependency = True) | ||
bazel_dep(name = "bazel_skylib", version = "1.7.1", dev_dependency = True) | ||
|
||
local_path_override( | ||
module_name = "com_myorg_rules_mylang", | ||
module_name = "com_bookingcom_rules_flatbuffers", | ||
path = "../..", | ||
) |
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,5 +1,5 @@ | ||
# smoke test | ||
|
||
This e2e exercises the repo from an end-users perpective. | ||
It catches mistakes in our install instructions, or usages that fail when called from an "external" repository to rules_mylang. | ||
It catches mistakes in our install instructions, or usages that fail when called from an "external" repository to rules_flatbuffers. | ||
It is also used by the presubmit check for the Bazel Central Registry. |
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,19 +1,24 @@ | ||
# Override http_archive for local testing | ||
local_repository( | ||
name = "com_myorg_rules_mylang", | ||
name = "com_bookingcom_rules_flatbuffers", | ||
path = "../..", | ||
) | ||
|
||
#---SNIP--- Below here is re-used in the workspace snippet published on releases | ||
|
||
###################### | ||
# rules_mylang setup # | ||
# rules_flatbuffers setup # | ||
###################### | ||
# Fetches the rules_mylang dependencies. | ||
# Fetches the rules_flatbuffers dependencies. | ||
# If you want to have a different version of some dependency, | ||
# you should fetch it *before* calling this. | ||
# Alternatively, you can skip calling this function, so long as you've | ||
# already fetched all the dependencies. | ||
load("@com_myorg_rules_mylang//mylang:repositories.bzl", "rules_mylang_dependencies") | ||
load("@com_bookingcom_rules_flatbuffers//flatbuffers:repositories.bzl", "flatbuffers_register_toolchains", "rules_flatbuffers_dependencies") | ||
|
||
rules_mylang_dependencies() | ||
rules_flatbuffers_dependencies() | ||
|
||
flatbuffers_register_toolchains( | ||
"flatbuffers", | ||
flatbuffers_version = "24.3.25", | ||
) |
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,7 @@ | ||
"Public API re-exports" | ||
|
||
load("@com_github_google_flatbuffers//:build_defs.bzl", _flatbuffer_library_plubic = "flatbuffer_library_public") | ||
|
||
def flatbuffer_library_plubic(**kwargs): | ||
kwargs.pop("flatc_path", None) | ||
_flatbuffer_library_plubic(flatc_path = "", **kwargs) |
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,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
exec $FLATC_BINARY $@ |
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
Oops, something went wrong.