question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't easily import googleapis into my WORKSPACE

See original GitHub issue

The github.com/googleapis/googleapis repository has several .proto files for Google APIs, including for example the Google Assistant one.

Unfortunately, though unsurprisingly, they are missing BUILD files so it’s not possible to build them from Bazel by purely importing the remote repository.

I can vendor it as a stop-gap solution, no big deal, but this seems sub-optimal at scale.

  1. Could the googleapis repo have BUILD.bazel files? OR
  2. Could Bazel somehow live without explicitly checked in BUILD files for protos?

I would suggest that you consider the 2nd option. Imagine a world where a lot of people write gRPC services and want to publish them for the world to use. There needs to be an easy way for folks to share .protos and Bazel is almost the perfect solution, except that demanding that all upstream services have BUILD files makes it hard to even get started.

Would it be possible to improve this? Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
damienmgcommented, Nov 23, 2017

We have https://github.com/bazelbuild/bazel-packages about making BUILD for other repository.

What I think we should have is BUILD files in googleapis. I don’t know who to speak to get that though, maybe @ola-rozenfeld knows?

1reaction
meteorcloudycommented, Nov 23, 2017

I don’t think we should provide BUILD files for other repository, I believe the first option is the correct way to go. As for .proto files, maybe you also need to import https://github.com/google/protobuf ? @damienmg What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot the data migration service - Google Workspace ...
Click Manage Domain Wide Delegation. The client ID should be listed under API clients. If the client ID is not listed, click Add...
Read more >
Resolve errors | Drive API - Google Developers
To fix this error, check the sharing settings of the Google Workspace domain to which the file belongs. The settings might prohibit sharing ......
Read more >
API Connector - Google Workspace Marketplace
Connect and import data from any API to Google Sheets. ... Start quickly with a library of ready-to-use APIs, or create your own...
Read more >
Consuming API Workspace for Developers - Stack Overflow
You should consider using the Google api python client library you have your question tagged with that but your code shows you are...
Read more >
Exporting and Importing Entities - Datastore - Google Cloud
When you import data, the required indexes are automatically rebuilt ... You can not import a subset of kinds and namespaces from an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found