bazelbuild / bazel-central-registry

The central registry of Bazel modules for the Bzlmod external dependency system.
https://registry.bazel.build
Apache License 2.0
233 stars 261 forks source link

[Bug]: Building @zlib generates libzlib.so instead of libz.so #2226

Open tzm-luminar opened 1 month ago

tzm-luminar commented 1 month ago

What happened?

I added bazel_dep(name = "zlib", version = "1.3.1") to my MODULE.bazel then ran bazel build @zlib. The output was:

INFO: Analyzed target @@zlib~//:zlib (109 packages loaded, 1163 targets configured).
INFO: Found 1 target...
Target @@zlib~//:zlib up-to-date:
  bazel-bin/external/zlib~/libzlib.a
  bazel-bin/external/zlib~/libzlib.so

I expected the generated files to be libz.[a|so], not libzlib.[a|so]

Version

Development (host) and target OS/architectures: Linux

Output of bazel --version: bazel 7.1.2

Version of relevant rules from the WORKSPACE or MODULE.bazel file: ?

Language(s) and/or frameworks involved: ?

How to reproduce

Try to build zlib from Bazel Central Registry

Any other information?

No response