Skip to content

Conversation

@malt3
Copy link
Collaborator

@malt3 malt3 commented Oct 3, 2025

We need native Go code during the image pull phase (in a repo rule) and during the build phase (via a Bazel toolchain).
This PR splits out a part of the img tool into a separate binary pull_tool.
The goal is to eventually enable a source bootstrap of the pull tool in a repository rule.
Once everything is done, all parts of the codebase can be used without any prebuilt code (at any commit and with local patches):

  • the Bazel rules (via rules_img)
  • the img tool (via rules_img_tool)
  • the pull_tool (via a new Bazel module)

Working towards #110.

@aspect-workflows
Copy link

aspect-workflows bot commented Oct 3, 2025

Bazel 8 (Test)

2 test targets passed

Targets
//img/private/release/gazelle_plugin:release_files_test [k8-fastbuild] 80ms
//util:buildifier.check [k8-fastbuild]                                 974ms

Total test execution time was 1s. 8 tests (80.0%) were fully cached saving 1s.


Buildifier

@malt3 malt3 force-pushed the pull_tool_01 branch 4 times, most recently from a2aad50 to 886ddb8 Compare October 6, 2025 11:58
malt3 added 3 commits October 6, 2025 14:26
The logic for this is currently duplicated across img_tool and pull_tool, until the switch is complete.
@malt3 malt3 force-pushed the pull_tool_01 branch 2 times, most recently from 22891b4 to c9bb99c Compare October 6, 2025 12:29
@malt3 malt3 marked this pull request as ready for review October 6, 2025 14:25
@malt3 malt3 merged commit 96f3bbc into main Oct 6, 2025
11 checks passed
@malt3 malt3 deleted the pull_tool_01 branch October 6, 2025 15:32
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

Successfully merging this pull request may close these issues.

2 participants