sourcegraph/third_party
Noah S-C 463f11a388
bazel: patch rules_oci to run tar with --no-xattrs (#61004)
Workaround for https://github.com/sourcegraph/devx-support/issues/622. This is portable between both bsdtar and gnutar. On gnutar, this is the default, so this changes nothing for CI builds. This only changes behaviour in macOS with bsdtar.

It is unclear to me where a final solution will exist:
- An issue was opened upstream in docker/moby, but the latest opinion is that this is an issue with rules_oci _technically_ emitting docker-compatible formats that are incompatible with docker (Im not 100% sure yet that docker itself cant create a tarball that would fail to `docker load`, but I dont want to subject Christoph to more experiments lol) https://github.com/moby/moby/issues/47517
- A PR exists in rules_oci to use a hermetic BSD tar instead of system tar (doesnt work on nixos though coz dynamic libraries :sadge:). It uses `mtree` format to add files, I don't know yet if that works around xattr issue without also passing `--no-xattr` (my current belief is that it does not)  https://github.com/bazel-contrib/rules_oci/pull/385

## Test plan

Had Christoph run `bazel run //cmd/batcheshelper:image_tarball`, which succeeded with this patch
2024-03-11 19:27:37 +00:00
..
com_github_cloudflare_circl bazel: build //internal/... (#47109) 2023-01-31 19:02:34 +01:00
com_github_sourcegraph_zoekt bzl: remove from upsteam zoekt repo (#55516) 2023-08-02 09:31:38 -05:00
com_github_strum355_gomockgen bazel: native go-mockgen in Bazel (#60386) 2024-02-16 13:26:48 +00:00
hermetic_cc chore: bump hermetic_cc_toolchain to drop patches (#59541) 2024-01-12 13:24:21 +00:00
rules_go bump to Go 1.22.1 (#60902) 2024-03-06 17:38:43 -07:00
rules_oci bazel: patch rules_oci to run tar with --no-xattrs (#61004) 2024-03-11 19:27:37 +00:00