From de9fd596fdacca00aba175f838e6b9c7fb45c946 Mon Sep 17 00:00:00 2001 From: Peter Lobsinger Date: Mon, 2 Sep 2024 15:39:32 -0700 Subject: [PATCH] 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 --- docs/repositories.md | 2 +- lib/private/coreutils_toolchain.bzl | 26 ++++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/docs/repositories.md b/docs/repositories.md index acdef9a..537cd1d 100644 --- a/docs/repositories.md +++ b/docs/repositories.md @@ -108,7 +108,7 @@ Registers coreutils toolchain and repositories | Name | Description | Default Value | | :------------- | :------------- | :------------- | | name | override the prefix for the generated toolchain repositories | `"coreutils"` | -| version | the version of coreutils to execute (see https://github.com/uutils/coreutils/releases) | `"0.0.26"` | +| version | the version of coreutils to execute (see https://github.com/uutils/coreutils/releases) | `"0.0.27"` | | register | whether to call through to native.register_toolchains. Should be True for WORKSPACE users, but false when used under bzlmod extension | `True` | diff --git a/lib/private/coreutils_toolchain.bzl b/lib/private/coreutils_toolchain.bzl index 972fa1e..a288464 100644 --- a/lib/private/coreutils_toolchain.bzl +++ b/lib/private/coreutils_toolchain.bzl @@ -34,13 +34,33 @@ COREUTILS_PLATFORMS = { ), } -DEFAULT_COREUTILS_VERSION = "0.0.26" - # https://github.com/uutils/coreutils/releases # # The integrity hashes can be automatically fetched for the coreutils releases by running # `tools/coreutils_mirror_release.sh`. 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": { "darwin_arm64": { "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( doc = "Provide info for executing coreutils", fields = {