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

Break end-user dependency on rules_go #319

Closed
alexeagle opened this issue Dec 19, 2018 · 1 comment
Closed

Break end-user dependency on rules_go #319

alexeagle opened this issue Dec 19, 2018 · 1 comment

Comments

@alexeagle
Copy link
Contributor

In rules_typescript we are working to make Bazel work better for a broad user base of Angular developers. One major problem with the first-time user experience is a very large download of the Go SDK.

Our solution is to release rules_typescript with pre-compiled go binaries for each platform. Then the rules_go dependency only appears for us in development, and we strip such load() statements from the starlark code we publish. This should allow our users to drop the rules_go dependency from their WORKSPACE files.

However, rules_typescript depends on rules_webtesting, which still requires the transitive dependency on rules_go. We're happy to help cut this dependency so that Angular developers aren't compiling Go programs from sources.

@alexeagle
Copy link
Contributor Author

Just discussed in person with @DrMarcII - this seems doable, we'd need to start publishing rules_webtesting releases as github artifacts on e.g. https://github.com/bazelbuild/rules_webtesting/releases/tag/0.2.2
and this published artifact would have to be somewhat transformed to at minimum scrub any load() path from JS user to Go sources.

For reference, we've been making the same change in rules_typescript, eg. bazelbuild/rules_typescript#355

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

No branches or pull requests

1 participant