Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This PR refactors bundle steps and :bin generation #61

Merged
merged 2 commits into from
Jan 16, 2020

Conversation

kigster
Copy link
Contributor

@kigster kigster commented Jan 6, 2020

In this PR we add a @bundle//bin target consisting of all binaries + the limited list of gem dependencies that provide those binaries (instead of all binaries), thus enabling running of @bundle//bin/rubocop with proper dependencies. We are also adding executable commands under bin/* to the sources of respective gems providing that executable.

We also attempted to secure the order of bundle operations by passing the result of a previous macro/action to the next, in hopes to create a linear dependency graph. While this did not break things, it's unclear whether this actually accomplishes the desired affect. Leaving in, in case we could trigger the linear dependency of steps within rule's implementation by, perhaps, accessing each result in addition to passing it as a function argument to the next function.

You can reference individual gems as @bundle//:gem-name as before, and you can also pull in the entire bundle with @bundle//:gems.

@kigster kigster force-pushed the kig/refactor-bundle-binaries branch from 8fe9073 to 27bcdd0 Compare January 6, 2020 01:22
@kigster kigster self-assigned this Jan 6, 2020
@kigster kigster added this to the M-0.2 milestone Jan 6, 2020
@kigster kigster force-pushed the kig/refactor-bundle-binaries branch from 49e92b7 to ecf0fc5 Compare January 16, 2020 22:12
@kigster kigster merged commit fafab7e into bazelruby:develop Jan 16, 2020
@kigster
Copy link
Contributor Author

kigster commented Jan 16, 2020

This was already reviewed, merging since I only updated with PR feedback.

@kigster kigster deleted the kig/refactor-bundle-binaries branch January 16, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants