Skip to content

bazel run/build failed with bazel 6.2.1 #86

@niconical

Description

@niconical
➜ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions