← Back to issue list

Add bazel plugin

View original Github issue

Metadata

Project
craft-parts
Number
#963
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Closed as superseded by #1116 (lengau, 2025-06-09). Bazel support ultimately landed in merged PR #1491, commit 3ac59612 'feat: added bazel plugin', adding craft_parts/plugins/bazel_plugin.py plus plugin registry and docs.

Resolution: closed superseded

Reason: Maintainer lengau commented 'Superseded by #1116' on 2025-06-09 and closed the issue. #1116 itself was delivered by merged PR #1491 (commit 3ac59612), which added craft_parts/plugins/bazel_plugin.py, registered BazelPlugin under "bazel" in plugins.py, and added docs/common/craft-parts/reference/plugins/bazel_plugin.rst.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done [Bazel](https://bazel.build/) - a popular build system projects is not currently listed among available plugins. For now you can work around it by using `nil` or `dump` plugin and call the build tool in `override-build`, but it is not super obvious for newbies. ### Why it needs to get done [It is used to build tensorflow-lite](https://forum.snapcraft.io/t/missing-bazel-plugin-for-building-tensorflow-snap/1863) and [others](https://forum.snapcraft.io/t/my-build-system-is-not-supported/37028/2) Originally requested by @Asalle: https://github.com/canonical/snapcraft/issues/5197

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed as superseded by #1116 (lengau, 2025-06-09). Bazel support ultimately landed in merged PR #1491, commit 3ac59612 'feat: added bazel plugin', adding craft_parts/plugins/bazel_plugin.py plus plugin registry and docs.
stealth/space-bunny-alpha — closed superseded Bazel support was delivered through craft-parts#1491, merged as commit 3ac59612, providing a shared plugin for Snapcraft and other Craft tools.
qwen/qwen3.6-35b-a3b — — The Bazel plugin request was closed and superseded by pull request #1116, which implements the requested build system support.
qwen/qwen3.6-35b-a3b — — Request to add a Bazel plugin was closed and superseded by #1116, which implements the feature.
qwen/qwen3.6-35b-a3b — — Request to add a Bazel plugin was closed and superseded by pull request #1116, which implements the feature.
qwen3.6-35b-a3b-mtp-q6 — — Closed and superseded by pull request #1116, which implements the requested Bazel plugin for Snapcraft.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/craft-parts#1116 (confidence 98%)

    Explicit maintainer comment 'Superseded by #1116' is the stated closing reason.

  • Likely Fixed By: canonical/craft-parts#1491 (confidence 95%)

    Merged PR that implemented the plugin in commit 3ac59612 'feat: added bazel plugin (#1491)'.

  • Related To: canonical/snapcraft#5197 (confidence 60%)

    Original upstream request from @Asalle cited in the issue body as the source of the requirement.

Related issues

Issue Project State Summary Similarity
#5197 Add bazel plugin snapcraft closed Bazel plugin was delivered in craft-parts rather than Snapcraft: merged PR canonical/craft-parts#1491 (commit 3ac59612) added craft_parts/plugins/bazel_plugin.py, plugin docs and registration in plugins.py.
85%
#1176 feat: add bazel plugin craft-parts closed Closed unmerged after review was pending; maintainers requested an agreed design. Bazel support later landed via #1491 in commit 3ac59612.
82%
#1491 feat: added bazel plugin craft-parts merged Bazel plugin support was merged via craft-parts#1491 (commit 3ac59612), adding bazel-bootstrap and target-based Starcraft builds.
80%
#1116 Bazel plugin craft-parts closed Bazel plugin support was delivered in merged PR #1491 (commit 3ac59612), after the bounty was reopened and later closed.
78%
#1438 Create a Bazel plugin craft-parts closed Bazel support was merged in canonical/craft-parts#1491 (commit 3ac59612), adding a Craft Parts Bazel plugin with configurable targets/parameters and reference documentation.
78%
#1186 feat: enable Bazel plugin rockcraft merged Merged in #1186 via commit 5f91cc83, enabling the Bazel plugin and adding a spread test and docs link. The plugin is documented in Rockcraft 1.19.
70%