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

Return dependency metadata from module extension #95

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mortenmj
Copy link

@mortenmj mortenmj commented Sep 7, 2024

This allows use_repo() calls in MODULE.bazel to be automagically created. With a MODULE.bazel containing e.g.

apk = use_extension("@rules_apko//apko:extensions.bzl", "apko")
apk.toolchain(
    apko_version = "v0.14.2"
)
apk.translate_lock(
    name = "my_image",
    lock = "//my_image:apko.lock.json",
)

running bazel mod tidy would generate (or update) a use_repo() expression like so:

use_repo(apk, "apko_toolchains", "my_image")

@alexeagle alexeagle enabled auto-merge (squash) September 7, 2024 17:31
auto-merge was automatically disabled September 7, 2024 18:20

Head branch was pushed to by a user without write access

@alexeagle alexeagle enabled auto-merge (squash) September 10, 2024 18:23
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