chainguard-dev / rules_apko

Bazel rules for apko
https://apko.dev
Apache License 2.0
21 stars 13 forks source link

Release version 1.3.0 to BCR #81

Open Dig-Doug opened 2 weeks ago

Dig-Doug commented 2 weeks ago

See https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/rules_apko

Did the bot stop working?

swarren12 commented 1 week ago

A workaround, until this is fixed, is to add this to MODULE.bazel:

bazel_dep(name = "rules_apko", version = "1.3.0")

archive_override(
    module_name = "rules_apko",
    integrity = "sha256-++EunVeKUUy/shvxDcGCdpvOsIVC69M9nuVgvSgK4HI=",
    strip_prefix = "rules_apko-1.3.0",
    urls = [
        "https://github.com/chainguard-dev/rules_apko/releases/download/v1.3.0/rules_apko-v1.3.0.tar.gz"
    ],
)

(Edit: added missing strip_prefix)

farcop commented 1 week ago

Does not work for me ERROR: MODULE.bazel expected but not found at /private/var/tmp/_bazel_farcop/e66529431dbede3bc951f821053136ab/external/rules_apko~/MODULE.bazel: /private/var/tmp/_bazel_farcop/e66529431dbede3bc951f821053136ab/external/rules_apko~/MODULE.bazel (No such file or directory). Type 'bazel help mod' for syntax and help.

swarren12 commented 1 week ago

Does not work for me ERROR: MODULE.bazel expected but not found at /private/var/tmp/_bazel_farcop/e66529431dbede3bc951f821053136ab/external/rules_apko~/MODULE.bazel: /private/var/tmp/_bazel_farcop/e66529431dbede3bc951f821053136ab/external/rules_apko~/MODULE.bazel (No such file or directory). Type 'bazel help mod' for syntax and help.

Ah, my bad. I missed out the strip_prefix attribute. Added that in to the original suggestion.