Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • bazel/rules_coreutils
1 result
Show changes
# `bzlmod` pre-release registries
common --registry https://bcr.bazel.build
common --registry=https://gitlab.arm.com/bazel/rules_download/-/releases/v1.0.0-alpha.8/downloads
# Build cache
build --experimental_guard_against_concurrent_changes
......
# [1.0.0-alpha.7](https://git.gitlab.arm.com/bazel/rules_coreutils/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2024-02-14)
### Bug Fixes
- upgrade to `download_utils@1.0.0-beta.1` ([ceb5b12](https://git.gitlab.arm.com/bazel/rules_coreutils/commit/ceb5b12e17a6d03ed7712bb854accadd2c55ad15))
### Features
- add `coreutils-amd64-macos-darwin` download ([e427f1d](https://git.gitlab.arm.com/bazel/rules_coreutils/commit/e427f1dfc87a1e0ba41a4414239bb78d5a4d49c5))
# [1.0.0-alpha.6](https://git.gitlab.arm.com/bazel/rules_coreutils/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2024-02-12)
### Bug Fixes
......
module(
name = "rules_coreutils",
version = "1.0.0-alpha.6",
version = "1.0.0-alpha.7",
bazel_compatibility = [
">=7.0.0",
],
......@@ -8,9 +8,9 @@ module(
)
bazel_dep(name = "toolchain_utils", version = "1.0.0-beta.1")
bazel_dep(name = "rules_download", version = "1.0.0-alpha.8")
bazel_dep(name = "download_utils", version = "1.0.0-beta.1")
archive = use_repo_rule("@rules_download//download/archive:defs.bzl", "download_archive")
archive = use_repo_rule("@download_utils//download/archive:defs.bzl", "download_archive")
archive(
name = "coreutils-arm64-linux-gnu",
......@@ -56,6 +56,17 @@ archive(
urls = ["https://github.com/uutils/coreutils/releases/download/0.0.23/coreutils-0.0.23-aarch64-apple-darwin.tar.gz"],
)
archive(
name = "coreutils-amd64-macos-darwin",
srcs = ["entrypoint"],
integrity = "sha256-SswetVAuK/hMK1r9uBvNnKj5JpSgD0bzkbsHTxOabCo=",
links = {
"coreutils": "entrypoint",
},
strip_prefix = "coreutils-0.0.23-x86_64-apple-darwin",
urls = ["https://github.com/uutils/coreutils/releases/download/0.0.23/coreutils-0.0.23-x86_64-apple-darwin.tar.gz"],
)
select = use_repo_rule("@toolchain_utils//toolchain/local/select:defs.bzl", "toolchain_local_select")
select(
......@@ -65,6 +76,7 @@ select(
"arm64-linux-gnu": "@coreutils-arm64-linux-gnu",
"amd64-windows": "@coreutils-amd64-windows-msvc",
"arm64-macos-darwin": "@coreutils-arm64-macos-darwin",
"amd64-macos-darwin": "@coreutils-amd64-macos-darwin",
},
)
......@@ -74,7 +86,7 @@ export.symlink(
target = "@coreutils",
)
deb = use_repo_rule("@rules_download//download/deb:defs.bzl", "download_deb")
deb = use_repo_rule("@download_utils//download/deb:defs.bzl", "download_deb")
deb(
name = "busybox-arm64-linux",
......
This diff is collapsed.
......@@ -44,6 +44,14 @@ some_repo_rule(
)
```
### Runnable Targets
The resolved toolchains are runnable:
```sh
bazel run -- @rules_coreutils//coreutils/toolchain:resolved
```
## Implementations
Various implementations of the core utilties are resolved depending on the platform.
......
# `bzlmod` pre-release registries
common --registry https://bcr.bazel.build
common --registry=https://gitlab.arm.com/bazel/rules_download/-/releases/v1.0.0-alpha.8/downloads
# Build cache
build --experimental_guard_against_concurrent_changes
......
This diff is collapsed.