Skip to content

no such attribute #1296

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

Closed
Vinccool96 opened this issue Feb 7, 2023 · 1 comment
Closed

no such attribute #1296

Vinccool96 opened this issue Feb 7, 2023 · 1 comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@Vinccool96
Copy link

I am using the googleapi repo on Ubuntu 22.04. This library causes it to bug

Steps to reproduce

  1. Clone googleapi
  2. run bazel build //...

Error messages:

ERROR: /home/vinc/.cache/bazel/_bazel_vinc/b765feac83d3b5d50b722a407f17c1a4/external/gapic_generator_java/rules_java_gapic/BUILD.bazel:7:8: @gapic_generator_java//rules_java_gapic:gradlew: no such attribute 'extension' in '_real_pkg_tar' rule
ERROR: /home/vinc/.cache/bazel/_bazel_vinc/b765feac83d3b5d50b722a407f17c1a4/external/gapic_generator_java/rules_java_gapic/BUILD.bazel:7:8: @gapic_generator_java//rules_java_gapic:gradlew: no such attribute 'files' in '_real_pkg_tar' rule
ERROR: /home/vinc/.cache/bazel/_bazel_vinc/b765feac83d3b5d50b722a407f17c1a4/external/gapic_generator_java/rules_java_gapic/BUILD.bazel:7:8: @gapic_generator_java//rules_java_gapic:gradlew: no such attribute 'mode' in '_real_pkg_tar' rule
ERROR: /home/vinc/.cache/bazel/_bazel_vinc/b765feac83d3b5d50b722a407f17c1a4/external/gapic_generator_java/rules_java_gapic/BUILD.bazel:7:8: @gapic_generator_java//rules_java_gapic:gradlew: no such attribute 'modes' in '_real_pkg_tar' rule
ERROR: /home/vinc/IntelliJProjects/googleapis/grafeas/v1/BUILD.bazel:179:31: Target '@gapic_generator_java//rules_java_gapic:resources/gradle/proto.gradle.tmpl' contains an error and its package is in error and referenced by '//grafeas/v1:proto-google-cloud-grafeas-v1-java-resources'
@Vinccool96 Vinccool96 added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 7, 2023
@lqiu96
Copy link
Contributor

lqiu96 commented Feb 8, 2023

Thanks @Vinccool96 for raising this issue.

In https://github.com/googleapis/gapic-generator-java/blob/main/DEVELOPMENT.md, we do recommend installing bazelisk to use the bazel version specified in the .bazeliskrc file (it should match the version specified in googleapis' .bazeliskrc file at https://github.com/googleapis/googleapis/blob/e42829fac916ce9982c7de05bf242d611e7066f1/.bazeliskrc#L2)

We should fix this issue with Bazel 6 compatibility and I see there is a PR with a potential fix going around. I'm going to close this one and we can track this bug in the other issue. Thanks again!

@lqiu96 lqiu96 closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants