chore(deps): update coreutils to v0.0.27 (#905)

* chore(deps): update coreutils to v0.0.27

This release has an `aarch64-apple-darwin` binary, eliminating the need
for a `version_override` hack to support that platform.

* chore: restore previous coreutils

Users should be able to pin and not have us break them

---------

Co-authored-by: Alex Eagle <alex@aspect.dev>
This commit is contained in:
Peter Lobsinger 2024-09-02 15:39:32 -07:00 committed by GitHub
parent 208b057953
commit de9fd596fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 25 additions and 3 deletions

2
docs/repositories.md generated
View File

@ -108,7 +108,7 @@ Registers coreutils toolchain and repositories
| Name | Description | Default Value | | Name | Description | Default Value |
| :------------- | :------------- | :------------- | | :------------- | :------------- | :------------- |
| <a id="register_coreutils_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | `"coreutils"` | | <a id="register_coreutils_toolchains-name"></a>name | override the prefix for the generated toolchain repositories | `"coreutils"` |
| <a id="register_coreutils_toolchains-version"></a>version | the version of coreutils to execute (see https://github.com/uutils/coreutils/releases) | `"0.0.26"` | | <a id="register_coreutils_toolchains-version"></a>version | the version of coreutils to execute (see https://github.com/uutils/coreutils/releases) | `"0.0.27"` |
| <a id="register_coreutils_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | `True` | | <a id="register_coreutils_toolchains-register"></a>register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | `True` |

View File

@ -34,13 +34,33 @@ COREUTILS_PLATFORMS = {
), ),
} }
DEFAULT_COREUTILS_VERSION = "0.0.26"
# https://github.com/uutils/coreutils/releases # https://github.com/uutils/coreutils/releases
# #
# The integrity hashes can be automatically fetched for the coreutils releases by running # The integrity hashes can be automatically fetched for the coreutils releases by running
# `tools/coreutils_mirror_release.sh`. # `tools/coreutils_mirror_release.sh`.
COREUTILS_VERSIONS = { COREUTILS_VERSIONS = {
"0.0.27": {
"darwin_arm64": {
"filename": "coreutils-0.0.27-aarch64-apple-darwin.tar.gz",
"sha256": "sha256-BjAeGgJ8+sLCIwmokCOkfelCCLtnNRH49QcFnrDq8a4=",
},
"linux_arm64": {
"filename": "coreutils-0.0.27-aarch64-unknown-linux-musl.tar.gz",
"sha256": "sha256-doU+ZfTyA5I8RSwDAcsOkEI3BZXFuFwBfEbg+diS06g=",
},
"darwin_amd64": {
"filename": "coreutils-0.0.27-x86_64-apple-darwin.tar.gz",
"sha256": "sha256-1ivz4ue8/ROUYhPh22Bg2ASPgC6MKMulR52nLgZvTBo=",
},
"windows_amd64": {
"filename": "coreutils-0.0.27-x86_64-pc-windows-msvc.zip",
"sha256": "sha256-DC4H+hQX51aHoFudV39n7u217NDcNL9AiG4o4edboV0=",
},
"linux_amd64": {
"filename": "coreutils-0.0.27-x86_64-unknown-linux-musl.tar.gz",
"sha256": "sha256-tM+hJd16cCjflJyMwsCaevPYZMiBkIKZJm7/XC+760w=",
},
},
"0.0.26": { "0.0.26": {
"darwin_arm64": { "darwin_arm64": {
"filename": "coreutils-0.0.26-aarch64-apple-darwin.tar.gz", "filename": "coreutils-0.0.26-aarch64-apple-darwin.tar.gz",
@ -67,6 +87,8 @@ COREUTILS_VERSIONS = {
}, },
} }
DEFAULT_COREUTILS_VERSION = COREUTILS_VERSIONS.keys()[0]
CoreUtilsInfo = provider( CoreUtilsInfo = provider(
doc = "Provide info for executing coreutils", doc = "Provide info for executing coreutils",
fields = { fields = {