Skip to content

Comments

use transition to resolve correct tar in oci_load#762

Closed
contagnas wants to merge 1 commit intobazel-contrib:mainfrom
contagnas:main
Closed

use transition to resolve correct tar in oci_load#762
contagnas wants to merge 1 commit intobazel-contrib:mainfrom
contagnas:main

Conversation

@contagnas
Copy link
Contributor

This is similar to and based on #590

We're building oci_load targets with RBE on linux machines, and the tar in the load script fails to execute on macos hosts.

@thesayyn
Copy link
Collaborator

I am not sure if this workaround is fixing problems, or introducing more, i am even considering reverting #590.

See: #590 (comment)

@thesayyn
Copy link
Collaborator

Closing in favor of #794

@thesayyn thesayyn closed this Oct 15, 2025
thesayyn pushed a commit that referenced this pull request Dec 3, 2025
Hi @thesayyn, @alexeagle.

I'd like to help solve the cross-platform remote execution issue
described in
[#769](#769),
which significantly affects us. I see this is connected to the
fundamental Bazel limitation described in
[bazelbuild/bazel#19645](bazelbuild/bazel#19645).

I've noticed that a similar issue was addressed for crane and yq
toolchains in
[#590](#590),
but the same transition-based solution for tar toolchain
([#762](#762))
got stuck because it doesn't work well in other cases.

## Proposal

I'm suggesting to use target_toolchain which was [recently
implemented](bazel-contrib/tar.bzl#65) instead
of toolchain to determine it correctly. As a prerequisite we need to
migrate to tar.bzl.

## Changes summary
1. tar.bzl was used instead of `aspect_bazel_lib/tar.bzl`
2. target toolchain was used instead of toolchainl.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants