Skip to content

Conversation

@JasonLunn
Copy link
Contributor

@JasonLunn JasonLunn commented Jul 14, 2023

Gems with native extensions (like ffi) will sometimes have elements of require_paths that are absolute rather than gem-path relative paths.
It is incorrect to prepend those paths with the gem_path and Bazel will only allow relative paths as inputs to its glob() function, so they must be transformed to relative paths before being emitted.

@JasonLunn JasonLunn requested review from kigster and yugui as code owners July 14, 2023 14:27
@JasonLunn
Copy link
Contributor Author

@yugui @kigster - the CircleCI failures all look like they're permissions-related... is there something I can do to fix that in my branch, or is that something that needs to be addressed on the infrastructure side?

@kigster
Copy link
Contributor

kigster commented Dec 13, 2023

@JasonLunn is this PR identical to #142?

If so I might prefer it due to using of cleanpath.

@JasonLunn
Copy link
Contributor Author

They're definitely similar. I tried to minimize the touching the existing support for relative paths. My own habits would be to introduce the use of cleanpath separately, since that really doesn't have anything to do with handling absolute paths. As long as some fix gets merged, I don't feel strongly either way.

@kigster kigster merged commit 9b3af8d into bazelruby:master Dec 19, 2023
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