bazelbuild / stardoc

Stardoc: Starlark Documentation Generator
Apache License 2.0
103 stars 40 forks source link

Switch to Bzlmod by default for managing external dependencies #213

Closed tetromino closed 2 months ago

tetromino commented 2 months ago

Switch from WORKSPACE-based to bzlmod-based dependency management by default.

WORKSPACE-based usage is still supported for users loading Stardoc's versioned distro tarballs, but some packages (//distro) in the git development tree will no longer load, and some of Stardoc's own golden tests will no longer pass, when using WORKSPACE.

Note that the new default behavior - when using Bzlmod for dependency management - is that Stardoc uses @stardoc as its repo name. The legacy WORKSPACE-based setup uses @io_bazel_stardoc as repo name. For compatibility with the legacy WORKSPACE setup, and for ease of migration, users of Stardoc may load it via bazel_dep(name = "stardoc", repo_name = "io_bazel_stardoc", ...) in their MODULE.bazel.

Fixes #189