Skip to content

Gazelle example in examples/build_file_generation is broken. #1372

@OliverFM

Description

@OliverFM

🐞 bug report

Affected Rule

The gazelle examples fail to build on debian and MacOS using rossetta.

Is this a regression?

Yes: it worked in `0.20.0` and in `0.23.0`.

Description

A clear and concise description of the problem...

The example shared in this repo fails at the third step when autogenerating a python repo using gazelle.

🔬 Minimal Reproduction

Follow the instructions in examples/build_file_generation the bazel run //:gazelle step generates the error.

🔥 Exception or Error




❯ bazel run //:gazelle
INFO: Analyzed target //:gazelle (38 packages loaded, 247 targets configured).
INFO: Found 1 target...
ERROR: /home/oliver/.cache/bazel/_bazel_oliver/b190e0a64341a6def97c1f54c204cc09/external/rules_python_gazelle_plugin/python/BUILD.bazel:5:11: GoCompilePkg external/rules_python_gazelle_plugin/python/python.a [for tool] failed: (Exit 1): builder failed: error executing command (from target @rules_python_gazelle_plugin//python:python) bazel-out/k8-opt-exec-2B5CBBC6/bin/external/go_sdk/builder_reset/builder compilepkg -sdk external/go_sdk -installsuffix linux_amd64 -src external/rules_python_gazelle_plugin/python/configure.go -src ... (remaining 65 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/rules_python_gazelle_plugin/python/lifecycle.go:23:11: undefined: language.BaseLifecycleManager
compilepkg: error running subcommand external/go_sdk/pkg/tool/linux_amd64/compile: exit status 2
Target //:gazelle failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.032s, Critical Path: 0.20s
INFO: 9 processes: 9 internal.
FAILED: Build did NOT complete successfully
ERROR: Build failed. Not running target

🌍 Your Environment

Operating System:

  
Debian 10 and MacOS 13.2.1 (22D68) with Rosetta
  

Output of bazel version:

  
bazel 6.3.2
  

Rules_python version:

  
0.24.0
  

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions