-
Notifications
You must be signed in to change notification settings - Fork 150
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
Fix metadata_store_service_go_proto build error #113
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -647,3 +647,40 @@ cc_test( | |
"@org_tensorflow//tensorflow/core:test", | ||
], | ||
) | ||
|
||
ml_metadata_go_wrap_cc( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. qq, will you only depend on the proto targets? if so, shall we exclude these targets? Some background, the go libs were excluded temporarily due to the go-rules had issues with py3.8 / py3.9 integration testing images. The grpc, proto dependencies currently were introduced by TF workspace. We had a todo to reintroduce them back once drop the TF's dependency in the WORKSPACE. |
||
name = "metadata_store_go_wrap", | ||
importpath = "ml_metadata/metadata_store/metadata_store_go_wrap", | ||
libname = "metadata_store_cgo_wrap", | ||
swigfile = "metadata_store_go", | ||
deps = [ | ||
":metadata_store_factory", | ||
"@org_tensorflow//tensorflow/core:lib", | ||
], | ||
) | ||
|
||
ml_metadata_go_library( | ||
name = "metadata_store_go", | ||
srcs = ["metadata_store.go"], | ||
cdeps = ["metadata_store_cgo_wrap"], | ||
cgo = True, | ||
importpath = "ml_metadata/metadata_store/mlmetadata", | ||
deps = [ | ||
":metadata_store_go_wrap", | ||
"//ml_metadata/proto:metadata_store_go_proto", | ||
"//ml_metadata/proto:metadata_store_service_go_proto", | ||
"@com_github_golang_protobuf//proto:go_default_library", | ||
], | ||
) | ||
|
||
ml_metadata_go_test( | ||
name = "metadata_store_go_test", | ||
size = "small", | ||
srcs = ["metadata_store_test.go"], | ||
library = ":metadata_store_go", | ||
deps = [ | ||
"//ml_metadata/proto:metadata_store_go_proto", | ||
"@com_github_golang_protobuf//proto:go_default_library", | ||
"@com_github_google_go_cmp//cmp:go_default_library", | ||
], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lowering the
io_bazel_rules_go
andbazel_gazelle
versions had issues to build other targets in the workspace (e.g., pip wheels, and cc). let's keep them as is for now? Please also see the background in the metadata_store/BUILD comment below.