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

Bazelify and move to modules #27

Closed
hsyed opened this issue Jul 27, 2018 · 7 comments
Closed

Bazelify and move to modules #27

hsyed opened this issue Jul 27, 2018 · 7 comments

Comments

@hsyed
Copy link

hsyed commented Jul 27, 2018

Happy to contribute this.

@rodaine
Copy link
Contributor

rodaine commented Jul 27, 2018

Would love to see Bazel support added! But since dep has been superceded by go modules (né vgo), I'd say hold off on that side of things.

@hsyed
Copy link
Author

hsyed commented Jul 27, 2018

Aah interesting I thought go modules was just for metadata !

I think the external dep approach (external deps declared as go_repository in the WORKSPACE file) is most appropriate for this project. WDYT ?

@rodaine
Copy link
Contributor

rodaine commented Jul 27, 2018

My bazel-fu is pretty weak, but I'd say that makes sense to me. We are vendoring PG* in lyft/protoc-gen-validate , which uses bazel, but a custom version of the go ruleset, so not sure how this will interplay.

@htuch, any suggestions on this front?

@htuch
Copy link
Contributor

htuch commented Jul 31, 2018

My Bazel Go fu is the weakest of them all. Once protoc-gen-star is Bazel, we can consume it as an external Bazel native dep (go_repository) in PGV, so that would be great. In terms of how to make it happen, maybe check out https://github.com/bazelbuild/bazel-gazelle and generate the BUILD files automagically, this is what we did for PGV.

@hsyed
Copy link
Author

hsyed commented Aug 8, 2018

I have had a look at vgo. Gazelle uses the lock file generated by dep to manage the workspace. vgo doesn’t use lock files. Using dep makes sense here, the validation framework uses it. It will likely take some time till solid support is availble in the rules.

The validation framework can be moved to the external workspace pattern and if we use dep here managin deps and regenerating the workspaces will be a cinch. Also the vendor directory can be excluded from vcs.

@rodaine rodaine changed the title Bazelify and move to dep. Bazelify and move to modules Feb 8, 2019
@rodaine
Copy link
Contributor

rodaine commented Feb 8, 2019

Given that dep has been superseded by modules, we'll want to go that route instead.

@rodaine
Copy link
Contributor

rodaine commented Aug 5, 2020

Closed by #81

@rodaine rodaine closed this as completed Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants