Closed manuelnaranjo closed 1 month ago
Ok now this works as expected, I can consume it from our MODULE.bazel with:
# used to convert RPMs into .tar we can use as container layers
bazel_dep(name = "bazeldnf", version = "0.6.0-rc8")
archive_override(
module_name = "bazeldnf",
# computed with:
# wget <url> -O rule.tar.gz
# INTEGRITY=$(openssl dgst -sha256 -binary rule.tar.gz | openssl base64 -A | sed 's/^/sha256-/')
integrity = "sha256-3MuxVWW2Biya+LWNfi7GC3qbWCPg2yr/mInOb7w8rHU=",
strip_prefix = "bazeldnf-v0.6.0-rc8",
urls = [
"https://github.com/bookingcom/bazeldnf/releases/download/v0.6.0-rc8/bazeldnf-v0.6.0-rc8.tar.gz",
],
patch_strip = 1,
patches = [
"@//bazel:patches/bazeldnf.patch",
],
)
Will cleanup the branch so we can merge the initial bzlmod support
Finally there with https://github.com/rmohr/bazeldnf/pull/77
TBD
I need to revist the list of commits and squash a few most likely