Thomas Lam

Results 8 comments of Thomas Lam

> Perhaps a batch version of [this loop](https://github.com/tweag/rules_nixpkgs/blob/9f08fb2322050991dead17c8d10d453650cf92b7/core/nixpkgs.bzl#L92-L94) that shells out to an external process to do all the copying could be formulated? Oh that could solve the problem. An...

Aha I just experimented a bit with a function like this: ```starlark def _is_executable(repository_ctx, path): exec_result = repository_ctx.execute(["stat", "-c", "%a", path]) stdout = exec_result.stdout.strip() mode = int(stdout, 8) return mode...

> I am a little curious why chmod is slower than stat though. Did a bit of research, and it looks like `chmod` (in our case, coreutils chmod) does more...

Thanks for the fix @benradf ! Just tested on my Mac and it seems to have around the same amount of improvement as my `stat` solution (also improves the build...

The compiler error that you got seems to be related to https://gitlab.freedesktop.org/pkg-config/pkg-config/-/issues/81

Hey! 👋 I've done some extensive research with OP's issue (me and OP are in the same team 😄) and came to the conclusion that https://github.com/bazelbuild/rules_rust/pull/2826 is the root cause....

@UebelAndre have you had a chance to take a look at this?