Skip to content

Use coreutils toolchain for copy_file action#622

Merged
kormide merged 4 commits intobazel-contrib:mainfrom
dzbarsky:zbarsky/coreutils-cp
Nov 14, 2023
Merged

Use coreutils toolchain for copy_file action#622
kormide merged 4 commits intobazel-contrib:mainfrom
dzbarsky:zbarsky/coreutils-cp

Conversation

@dzbarsky
Copy link
Contributor

@dzbarsky dzbarsky commented Oct 12, 2023

Use the coreutils toolchain rather than bash/batch scripts to perform the copy.

Type of change

  • Refactor (a code change that neither fixes a bug or adds a new feature)**

  • Relevant documentation has been updated

  • Suggested release notes are provided below:

  • Breaking change (this change will force users to change their own code or config)
    Might require toolchain registration where previously it wasn't needed, if users did their own toolchain registration instead of calling aspect_bazel_lib_register_toolchains as the docs recommend

Test plan

  • Covered by existing test cases

@dzbarsky dzbarsky force-pushed the zbarsky/coreutils-cp branch 2 times, most recently from 12add9a to 307ea0a Compare October 12, 2023 14:49
@jbedard jbedard requested a review from gregmagolan October 17, 2023 17:16
@gregmagolan
Copy link
Collaborator

Rebased and resolved conflict

@thesayyn
Copy link
Collaborator

thesayyn commented Nov 7, 2023

FYI, there was an issue with darwin arm64 binaries for coreutils. #519

@gregmagolan
Copy link
Collaborator

FYI, there was an issue with darwin arm64 binaries for coreutils. #519

So this PR will break copy_file on M1s until that is resolved?

@thesayyn
Copy link
Collaborator

thesayyn commented Nov 7, 2023

So this PR will break copy_file on M1s until that is resolved?

yes, if you don't have rosetta turned on

@gregmagolan
Copy link
Collaborator

Roger. We'll have to wait until that is resolved then before we can land this one.

@alexeagle alexeagle added the blocked Blocked by another issue label Nov 8, 2023
@dzbarsky
Copy link
Contributor Author

Let's see how they feel about uutils/coreutils#5523

@kormide kormide force-pushed the zbarsky/coreutils-cp branch from 6eb663b to 15e7913 Compare November 14, 2023 18:58
@kormide kormide merged commit 01ca8f9 into bazel-contrib:main Nov 14, 2023
kormide added a commit to kormide/bazel-lib that referenced this pull request Nov 15, 2023
alexeagle pushed a commit that referenced this pull request Dec 23, 2023
refactor: use coreutils toolchain for copy_file action
---------

Co-authored-by: Greg Magolan <greg@aspect.dev>
Co-authored-by: Derek Cormier <derek@aspect.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Blocked by another issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants