The instructions in https://github.com/bazelbuild/rules_pkg/tree/main?tab=readme-ov-file#modulebazel-setup say that to use this you include bazel_dep(name = "rules_pkg", version = "0.0.10") in the MODULE.bazel file.
That did not work for me and I got the error:
ERROR: Error computing the main repository mapping: in module dependency chain -> rules_pkg@0.0.10: module rules_pkg@0.0.10 not found in registries:
Looking at the registry: https://registry.bazel.build/modules/rules_pkg
It seems that the current version is 1.2.0 and there never was a version 0.0.10 (but was a 0.10.0).
Using bazel_dep(name = "rules_pkg", version = "1.2.0") worked for me.
The instructions in https://github.com/bazelbuild/rules_pkg/tree/main?tab=readme-ov-file#modulebazel-setup say that to use this you include
bazel_dep(name = "rules_pkg", version = "0.0.10")in theMODULE.bazelfile.That did not work for me and I got the error:
Looking at the registry: https://registry.bazel.build/modules/rules_pkg
It seems that the current version is
1.2.0and there never was a version0.0.10(but was a0.10.0).Using
bazel_dep(name = "rules_pkg", version = "1.2.0")worked for me.