Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.aspect.build/llms.txt

Use this file to discover all available pages before exploring further.

Re-use extension code that is available in external repositories. The MODULE.aspect file is a special Starlark file in the root of the repository, typically right next to a MODULE.bazel file.

Dependencies

The axl_archive_dep lets you declare a dependency, similar to the bazel_dep call in MODULE.bazel. For example, to use the lint and format commands provided by rules_lint:
MODULE.aspect
# Aspect Extension Language (AXL) dependencies; see https://github.com/aspect-extensions
axl_archive_dep(
    name = "aspect_rules_lint",
    urls = ["https://github.com/aspect-build/rules_lint/archive/65525d871f677071877d3ea1ec096499ff7dd147.tar.gz"],
    integrity = "sha512-TGcxutWr8FwxrK3G+uthbEpuYM2oOVpHPOvaVPzLLuHkfPY0jn/GWFp9myQeFzDFsRZ4ilT0jAWfGZhTk/nesQ==",
    strip_prefix = "rules_lint-65525d871f677071877d3ea1ec096499ff7dd147",
    auto_use_tasks = True,
    dev = True,
)

Find shared extensions

Aspect maintains a dedicated GitHub organization at Aspect Extensions, which hosts a collection of official and community-contributed extensions. The organization encourages developers to contribute their own extensions to this repository so that it’s easier to enhance community collaboration and visibility. Additionally, you can discover more extensions by exploring the aspect-extensions topic on GitHub. This topic aggregates a wide range of extensions, making it easier to find tools tailored to your specific needs.