This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Repo map

Extension to download several versions of a repository depending on a platform

1 - al_repo_map

al_repo_map

al_repo_map = use_extension("@com_alwaldend_src//bzl/rules/repo_map:al_repo_map.bzl", "al_repo_map")
al_repo_map.download(name, build_file_content, build_file_native_binary, download_type, executable,
                     repos, strip_prefix)

Extension to create several repos from a map

TAG CLASSES

download

Attributes

Name Description Type Mandatory Default
name Name Name required
build_file_content Build file content String optional ""
build_file_native_binary Args for a native binary build file Dictionary: String -> String optional {}
download_type Download type String optional "http_archive"
executable Field executable for http_file Boolean optional False
repos Map of repos Dictionary: String -> List of strings required
strip_prefix Strip prefix String optional ""

2 - Bazel targets

NameInfo
al_repo_map
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:al_repo_map
ruleClassbzl_library
visibility
  • //visibility:public
al_repo_map.stardoc
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:al_repo_map.stardoc
ruleClassgenrule
ruleOutput
  • //bzl/rules/repo_map:al_repo_map.stardoc.md
visibility
  • //visibility:private
al_repo_map.stardoc_raw
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:al_repo_map.stardoc_raw
ruleClassstardoc_markdown_renderer
ruleOutput
  • //bzl/rules/repo_map:al_repo_map.stardoc_raw.md
visibility
  • //visibility:private
al_repo_map.stardoc_raw.extract
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:al_repo_map.stardoc_raw.extract
ruleClassstarlark_doc_extract
ruleOutput
  • //bzl/rules/repo_map:al_repo_map.stardoc_raw.extract.binaryproto
  • //bzl/rules/repo_map:al_repo_map.stardoc_raw.extract.textproto
visibility
  • //visibility:private
changelog
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog
ruleClasspkg_filegroup
visibility
  • //visibility:public
changelog.changelog
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog.changelog
ruleClassal_template_files
ruleOutput
  • //bzl/rules/repo_map:changelog.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //bzl/rules/repo_map:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog.changelog_files
ruleClasspkg_files
visibility
  • //visibility:private
changelog.template
locationbzl/rules/repo_map/BUILD.bazel:6:17
name//bzl/rules/repo_map:changelog.template
ruleClass_write_file
ruleOutput
  • //bzl/rules/repo_map:changelog.template.md
visibility
  • //visibility:private
libs
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:libs
ruleClassbzl_library
visibility
  • //visibility:public
libs.stardoc
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:libs.stardoc
ruleClasspkg_filegroup
visibility
  • //visibility:public
libs.stardoc_src
locationbzl/rules/repo_map/BUILD.bazel:11:19
name//bzl/rules/repo_map:libs.stardoc_src
ruleClasspkg_files
visibility
  • //visibility:private
readme
locationbzl/rules/repo_map/BUILD.bazel:23:10
name//bzl/rules/repo_map:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme.srcs
locationbzl/rules/repo_map/BUILD.bazel:23:10
name//bzl/rules/repo_map:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationbzl/rules/repo_map/BUILD.bazel:23:10
name//bzl/rules/repo_map:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

3 - Changelog

  • Fix al_hugo_run_binary, add al_http_server_binary (1bf299)
  • Add al_go_platform rules, add native_binary support to al_repo_map (8ca07d)
  • Add external ansible collections, rename some deps (99b3c7)
  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Move transitive_sources rules to bzl/rules/transitive_sources (a4223b)
  • Move hugo rules to bzl/rules/hugo, move go rules to /bzl/rules/go (cb079f)
  • Move al_repo_map to bzl/rules (a77a38)