Skip to content

Commit

Permalink
Workaround bundler failing to load on non-default workspace name
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Jul 27, 2023
1 parent 3808024 commit d88e683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ruby/private/binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ def rb_binary_impl(ctx):
env["BUNDLE_GEMFILE"] = file.short_path

for dep in transitive_deps:
if dep.label.workspace_name == "bundle":
# TODO: Do not depend on workspace name to determine bundle
if dep.label.workspace_name.endswith("bundle"):
bundler = True
env["BUNDLE_PATH"] = "../" + dep.label.workspace_name

Expand Down

0 comments on commit d88e683

Please sign in to comment.