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

Update bazel build to use new naming convention #471

Merged
merged 5 commits into from
Jun 10, 2021
Merged

Update bazel build to use new naming convention #471

merged 5 commits into from
Jun 10, 2021

Conversation

tanyabouman
Copy link
Contributor

By default, Gazelle now uses the last component of the Bazel package, rather than go_default_library as the go_library name.

This causes problems when the naming conventions do not match.
bazel-contrib/bazel-gazelle#988

Adding support for the new naming convention should not break anything that depends on using the old naming convention, because the Gazelle option import_alias makes aliases to the libraries and this allows the old naming convention to still work.

There's also a minor update in dependencies.bzl and some additional Gazelle directives so that Gazelle doesn't break things when it runs.

Signed-off-by: Tanya Bouman <tanyabouman@gmail.com>
java/pgv-java-grpc/src/test/proto/BUILD.bazel Outdated Show resolved Hide resolved
validate/BUILD Outdated Show resolved Hide resolved
Signed-off-by: Tanya Bouman <tanyabouman@gmail.com>
@derekperkins
Copy link

I'm very excited for this to merge

@akonradi
Copy link
Contributor

Looks good, just waiting for CI now.

@derekperkins
Copy link

Anything holding this up from getting merged?

@akonradi
Copy link
Contributor

@derekperkins nope, just forgot to check back after CI finished

@derekperkins
Copy link

I'd love to see this in a release to see if it solves bazel-contrib/bazel-gazelle#988

@akonradi akonradi merged commit 4f41f10 into bufbuild:main Jun 10, 2021
@tanyabouman tanyabouman deleted the update-bazel-build branch June 11, 2021 23:15
qwertyp4nts pushed a commit to qwertyp4nts/protoc-gen-validate that referenced this pull request Jun 15, 2021
* update the bazel build

Signed-off-by: Tanya Bouman <tanyabouman@gmail.com>

* add alias for validate to validate_go

Signed-off-by: Tanya Bouman <tanyabouman@gmail.com>

* add deprecation notices for go_default_library aliases

Signed-off-by: Tanya Bouman <tanyabouman@gmail.com>

Co-authored-by: Alex Konradi <akonradi@google.com>
Signed-off-by: Mila <milakosc@gmail.com>
ihtkas added a commit to ihtkas/bazel-gazelle-ex that referenced this pull request Oct 3, 2021
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.

3 participants