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

bazel run/build failed with bazel 6.2.1 #86

Open
niconical opened this issue Jul 24, 2023 · 1 comment
Open

bazel run/build failed with bazel 6.2.1 #86

niconical opened this issue Jul 24, 2023 · 1 comment

Comments

@niconical
Copy link
Contributor

➜ bazel run //builders/go115/stack:build
ERROR: /home/mmif/builder/licenses/BUILD.bazel:7:8: //licenses:licenses: no such attribute 'extension' in '_real_pkg_tar' rule
ERROR: /home/mmif/builder/licenses/BUILD.bazel:7:8: //licenses:licenses: no such attribute 'strip_prefix' in '_real_pkg_tar' rule
ERROR: /home/mmif/builder/builders/go115/stack/BUILD.bazel:3:10: Target '//licenses:licenses.tar' contains an error and its package is in error and referenced by '//builders/go115/stack:build'
ERROR: Analysis of target '//builders/go115/stack:build' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.059s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
ERROR: Build failed. Not running target
➜  bazel build //builders/go115:builder.image
ERROR: /home/mmif/builder/builders/go115/BUILD.bazel:5:8: //builders/go115:builder: no such attribute 'extension' in '_real_pkg_tar' rule
ERROR: /home/mmif/builder/builders/go115/BUILD.bazel:5:8: //builders/go115:builder: no such attribute 'deps' in '_real_pkg_tar' rule
ERROR: Skipping '//builders/go115:builder.image': Error evaluating '//builders/go115:builder.image': error loading package 'builders/go115': Package 'builders/go115' contains errors
WARNING: Target pattern parsing failed.
ERROR: Error evaluating '//builders/go115:builder.image': error loading package 'builders/go115': Package 'builders/go115' contains errors
INFO: Elapsed time: 0.064s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)

OS env:

➜  cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"

Bazel version:

bazel 6.2.1

@niconical niconical changed the title bazel run/build failed bazel run/build failed with bazel 6.2.1 Jul 24, 2023
@niconical niconical changed the title bazel run/build failed with bazel 6.2.1 bazel run/build failed with bazel 6.2.1 Jul 24, 2023
@niconical
Copy link
Contributor Author

niconical commented Jul 24, 2023

This can be solved by downgrading the bazel version to 5.4.1.

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

No branches or pull requests

1 participant