-
Notifications
You must be signed in to change notification settings - Fork 473
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
Port to Go for 1.0 Release #305
Conversation
Very cool! I'm excited to see this happen, and humbled by being added as a potential reviewer. However, I'm a complete Go rookie. Both Go and Rust has long been on my TODO of things to familiarize myself with, but I've been so preoccupied with work (where it's all C++/Python) that it's never happened. I'm all for this port, but I think you better find someone else if you want a proper review. Or well, just say to hell with it and push, you're the maintainer now after all :) |
@estan thanks so much for all your reviews! Can I ask you one more favour? I was wondering if you could try running it, just for my own sanity to make sure it's not one of those "works for me" situations 😄 I've pushed 1.0.0-alpha, so the Docker image is available in DockerHub now. |
@aschrijver I saw that you had opened a few issues that should be resolved with this PR. Any chance you'd be willing to give it a shot? |
@pseudomuto Sure! Really nice work you've done here! [UPDATE The docker image is not yet available, so now figuring out how the go build (currently finding out how to build from |
I need some help in using / building. Both the docker and go package are not yet there, only in
|
Or the docker image.. |
Hmm...I did push an alpha build with the docker image. Are you able to get it using To test with a local build, take a look at CONTRIBUTING.md on this branch. Once you've got the dependencies you can run Thanks so much for taking a look man, I really appreciate it! |
Yep, I can pull the docker image now. I'll commence my tests later today! Thanks! |
@pseudomuto there seems to be no way to specify a single
(I always get 'No such file or directory' even when using [UPDATE 😵 😵 Should use the docker volume, stupid 😆 ] |
Alright, I adjusted my TravisCI test project to the new version, and now have 2 branches to compare:
I didn't update the pro's/con's yet, and custom templates are same as standard still, but some first observations:
|
Pushed a new build (and container) that addresses the issue of generating docs for individual files (can be multiple). You can get the latest by running |
Great, I will test tomorrow. (I'm in CET, Netherlands) |
This is a bit of a feature request, but putting here, since this is not yet live (I can create issues later). Having the message in the same sequence as defined in the So maybe the ordering could be set with a flag or something, or even an |
@pseudomuto don't hesitate to give me a note when I should regenerate/retest my doc example project |
Hey @aschrijver. I've updated the examples with your PR applied. I put out a RC release (1.0.0-rc) which you can get with As for your feature request, it seems like a pretty good idea. I'd be happy to work on that (or review a PR) for 1.1.0, but I'd really like to cut this release soon as this PR is already massive. |
Hi @pseudomuto Thanks! I created a dedicated repository for the testing: https://github.com/aschrijver/protoc-gen-doc-example. There are a number of issues still in the template output. HTML:
Markdown:
|
I also updated my 2 stackoverflow answers that were about |
This looks awesome. However, since you can't point |
The nobr filter used in markdown descriptions seems pretty intense: it doesn't add spaces, so words at the end and beginning of lines get put directly together without a space. |
Thanks man! I definitely am planning on merging this. I want to take a look at a few of the issues mentioned here first. In the meantime, the docker image is available, so you should be able to run it that way. https://github.com/pseudomuto/protoc-gen-doc/tree/go_port#using-the-docker-image-recommended |
Working on porting this project to go. More details to follow, these lists are works in progress as well.
New Things
Breaking Changes (might address some of these):
--doc_out
to parsing--doc_opt
.files
object, and all names arecamelCased
to be more idiomaticFixed Issues: