From d700a1df209427d32edfce93b1620324dd9ff500 Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Tue, 26 May 2026 17:49:40 +0200 Subject: [PATCH] GitHub move aherrmann -> hermeticbuild --- .bazelrc.common | 2 +- .bazelrc.remote | 10 +++++----- .bcr/metadata.template.json | 4 ++-- .github/workflows/ci.yaml | 4 ++-- README.md | 10 +++++----- e2e/workspace/toolchain-glibc-version/README.md | 3 +-- zig/private/repo/zig_repository.bzl | 2 +- zig/private/zig_toolchain_header.bzl | 2 +- .../integration_tests/integration_tests_runner.zig | 6 +++--- zig/tests/integration_tests/mirrors_tests_runner.zig | 2 +- 10 files changed, 22 insertions(+), 23 deletions(-) diff --git a/.bazelrc.common b/.bazelrc.common index 09e08f6e..673061fa 100644 --- a/.bazelrc.common +++ b/.bazelrc.common @@ -32,7 +32,7 @@ test --incompatible_exclusive_test_sandboxed # docs: https://bazel.build/reference/command-line-reference#flag--enable_platform_specific_config common --enable_platform_specific_config # Enable persistent Zig cache directory within the sandbox, -# see https://github.com/aherrmann/rules_zig/issues/87, +# see https://github.com/hermeticbuild/rules_zig/issues/87, # and https://github.com/uber/hermetic_cc_toolchain/issues/83. # docs: https://bazel.build/reference/command-line-reference#flag--sandbox_add_mount_pair build:linux --sandbox_add_mount_pair=/tmp diff --git a/.bazelrc.remote b/.bazelrc.remote index b6f9ef15..270bbf41 100644 --- a/.bazelrc.remote +++ b/.bazelrc.remote @@ -14,14 +14,14 @@ build:remote-bes --experimental_profile_include_primary_output build:remote-bes --nolegacy_important_outputs # docs: https://bazel.build/reference/command-line-reference#flag--bes_results_url -build:remote-bes --bes_results_url=https://aherrmann.buildbuddy.io/invocation/ +build:remote-bes --bes_results_url=https://hermeticbuild.buildbuddy.io/invocation/ # docs: https://bazel.build/reference/command-line-reference#flag--bes_backend -build:remote-bes --bes_backend=grpcs://aherrmann.buildbuddy.io +build:remote-bes --bes_backend=grpcs://hermeticbuild.buildbuddy.io # Remote cache setup. # docs: https://bazel.build/reference/command-line-reference#flag--remote_cache -build:remote-cache --remote_cache=grpcs://aherrmann.buildbuddy.io +build:remote-cache --remote_cache=grpcs://hermeticbuild.buildbuddy.io # docs: https://bazel.build/reference/command-line-reference#flag--remote_cache_compression build:remote-cache --remote_cache_compression # docs: https://bazel.build/reference/command-line-reference#flag--remote_download_toplevel @@ -36,9 +36,9 @@ build:remote-cache --experimental_remote_cache_lease_extension # Remote execution setup. # docs: https://bazel.build/reference/command-line-reference#flag--remote_executor -build:remote-exec --remote_executor=grpcs://aherrmann.buildbuddy.io +build:remote-exec --remote_executor=grpcs://hermeticbuild.buildbuddy.io # docs: https://bazel.build/reference/command-line-reference#flag--experimental_remote_downloader -build:remote-exec --experimental_remote_downloader=grpcs://aherrmann.buildbuddy.io +build:remote-exec --experimental_remote_downloader=grpcs://hermeticbuild.buildbuddy.io # docs: https://bazel.build/reference/command-line-reference#flag--jobs build:remote-exec --jobs=80 diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json index 154c0d30..bf38c1d0 100644 --- a/.bcr/metadata.template.json +++ b/.bcr/metadata.template.json @@ -1,5 +1,5 @@ { - "homepage": "https://github.com/aherrmann/rules_zig", + "homepage": "https://github.com/hermeticbuild/rules_zig", "maintainers": [ { "name": "Andreas Herrmann", @@ -8,7 +8,7 @@ "github_user_id": 732652 } ], - "repository": ["github:aherrmann/rules_zig"], + "repository": ["github:hermeticbuild/rules_zig"], "versions": [], "yanked_versions": {} } diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 35818bb0..8dcec588 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -161,7 +161,7 @@ jobs: buildbuddyApiKey: ${{ secrets.BUILDBUDDY_API_KEY || '' }} # Zig documentation builds are separated to work around the following issue: - # https://github.com/aherrmann/rules_zig/issues/273 + # https://github.com/hermeticbuild/rules_zig/issues/273 #test-zig-docs: # # The type of runner that the job will run on # runs-on: ${{ matrix.os }} @@ -209,7 +209,7 @@ jobs: # targetPattern: ${{ matrix.targetPattern }} # tagFilters: ${{ matrix.tagFilters }} # # Disable remote execution and avoid concurrency to work around - # # https://github.com/aherrmann/rules_zig/issues/273 + # # https://github.com/hermeticbuild/rules_zig/issues/273 # remoteEnabled: false # bazelFlags: "--jobs=1" # buildbuddyApiKey: ${{ secrets.BUILDBUDDY_API_KEY }} diff --git a/README.md b/README.md index 43487406..9e2f79a5 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Take a look at the [planned functionality][planned-functionality] tracking issue to get a picture of which functionality is already implemented and what is still missing. -[planned-functionality]: https://github.com/aherrmann/rules_zig/issues/1 +[planned-functionality]: https://github.com/hermeticbuild/rules_zig/issues/1 ## Motivation @@ -62,7 +62,7 @@ Note, the old WORKSPACE mechanmism is no longer supported by rules_zig. To install a [release version of rules_zig][rules-zig-releases] follow the installation instructions given in the corresponding release notes. -[rules-zig-releases]: https://github.com/aherrmann/rules_zig/releases +[rules-zig-releases]: https://github.com/hermeticbuild/rules_zig/releases To install a development version add the following to your MODULE.bazel file: @@ -72,7 +72,7 @@ archive_override( module_name = "rules_zig", integrity = "sha256-$SHA256", strip_prefix = "rules_zig-$COMMIT", - urls = ["https://github.com/aherrmann/rules_zig/archive/$COMMIT.tar.gz"], + urls = ["https://github.com/hermeticbuild/rules_zig/archive/$COMMIT.tar.gz"], ) ``` @@ -83,7 +83,7 @@ information. [archive-override-doc]: https://bazel.build/versions/7.0.0/rules/lib/globals/module#archive_override Examples can be found among the end-to-end tests under diff --git a/e2e/workspace/toolchain-glibc-version/README.md b/e2e/workspace/toolchain-glibc-version/README.md index 338c1aab..ef26f7b3 100644 --- a/e2e/workspace/toolchain-glibc-version/README.md +++ b/e2e/workspace/toolchain-glibc-version/README.md @@ -1,8 +1,7 @@ -By default, `rules_zig` targets a "lowest common denominator" glibc version to ensure broad compatibility. You can find the discussion behind this choice in [this PR](https://github.com/aherrmann/rules_zig/pull/299) and see the implementation [here](https://github.com/aherrmann/rules_zig/blob/main/zig/target/BUILD.bazel#L56). +By default, `rules_zig` targets a "lowest common denominator" glibc version to ensure broad compatibility. You can find the discussion behind this choice in [this PR](https://github.com/hermeticbuild/rules_zig/pull/299) and see the implementation [here](https://github.com/hermeticbuild/rules_zig/blob/main/zig/target/BUILD.bazel#L56). This example project demonstrates how to manually configure and use a specific glibc version with `rules_zig`. - ```bash # navigate to the workspace directory: cd e2e/workspace diff --git a/zig/private/repo/zig_repository.bzl b/zig/private/repo/zig_repository.bzl index d9c63f30..9d65864f 100644 --- a/zig/private/repo/zig_repository.bzl +++ b/zig/private/repo/zig_repository.bzl @@ -67,7 +67,7 @@ def _get_integrity_args(*, sha256, integrity): def _mirrors_urls(url, mirrors): filename = _basename(url) return [ - mirror + "/" + filename + "?source=github-aherrmann-rules_zig" + mirror + "/" + filename + "?source=github-hermeticbuild-rules_zig" for mirror in mirrors ] + [url] diff --git a/zig/private/zig_toolchain_header.bzl b/zig/private/zig_toolchain_header.bzl index 969eb0c6..691bf00b 100644 --- a/zig/private/zig_toolchain_header.bzl +++ b/zig/private/zig_toolchain_header.bzl @@ -25,7 +25,7 @@ TOOLCHAINS = [ def max_int_alignment(arch): """Architecture specific maximum integer alignment. - See https://github.com/aherrmann/zig/blob/5ad91a646a753cc3eecd8751e61cf458dadd9ac4/src/Type.zig#L1641 + See https://github.com/ziglang/zig/blob/5ad91a646a753cc3eecd8751e61cf458dadd9ac4/src/Type.zig#L1641 """ by_arch = { "avr": 1, diff --git a/zig/tests/integration_tests/integration_tests_runner.zig b/zig/tests/integration_tests/integration_tests_runner.zig index d605ad3f..dbb667fb 100644 --- a/zig/tests/integration_tests/integration_tests_runner.zig +++ b/zig/tests/integration_tests/integration_tests_runner.zig @@ -192,7 +192,7 @@ fn testBinaryShouldNotContainOutputBase(mode: []const u8) !void { test "zig_binary result should not contain the output base path in debug mode" { if (true) { // TODO[AH] Avoid output base path in debug mode. - // See https://github.com/aherrmann/rules_zig/issues/79 + // See https://github.com/hermeticbuild/rules_zig/issues/79 return error.SkipZigTest; } @@ -202,7 +202,7 @@ test "zig_binary result should not contain the output base path in debug mode" { test "zig_binary result should not contain the output base path in release_safe mode" { if (true) { // TODO[AH] Avoid output base path in release_safe mode. - // See https://github.com/aherrmann/rules_zig/issues/79 + // See https://github.com/hermeticbuild/rules_zig/issues/79 return error.SkipZigTest; } @@ -216,7 +216,7 @@ test "zig_binary result should not contain the output base path in release_small test "zig_binary result should not contain the output base path in release_fast mode" { if (true) { // TODO[AH] Avoid output base path in release_fast mode. - // See https://github.com/aherrmann/rules_zig/issues/79 + // See https://github.com/hermeticbuild/rules_zig/issues/79 return error.SkipZigTest; } diff --git a/zig/tests/integration_tests/mirrors_tests_runner.zig b/zig/tests/integration_tests/mirrors_tests_runner.zig index 4622e2cf..bc9c69b1 100644 --- a/zig/tests/integration_tests/mirrors_tests_runner.zig +++ b/zig/tests/integration_tests/mirrors_tests_runner.zig @@ -43,7 +43,7 @@ test "Zig distribution is fetched from a mirror" { if (url_value == .string) { if (std.mem.startsWith(u8, url_value.string, expected_url_prefix)) { fetch_used_mirror = true; - fetch_used_source_param = std.mem.endsWith(u8, url_value.string, "?source=github-aherrmann-rules_zig"); + fetch_used_source_param = std.mem.endsWith(u8, url_value.string, "?source=github-hermeticbuild-rules_zig"); } } }