--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/b4bef223-1ab6-4f3a-9ac7-d3cd08c7ada3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/b4bef223-1ab6-4f3a-9ac7-d3cd08c7ada3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS_kbSKROZ2v%3Df-NovY9oj_a0yxU0Fyinf_13CzYgEUUaQ%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
On Tue, Jul 18, 2017 at 10:41 PM, 'Damien Martin-Guillerez' via bazel-discuss <bazel-...@googlegroups.com> wrote:
+some rules_go maintainers
I think that is a very valuable feedback, feel free to send a PR on https://github.com/bazelbuild/bazel-blog to write a blog post about it :)
On Tue, Jul 18, 2017, 10:12 PM Kevin Burke <kbur...@gmail.com> wrote:
Hi,--For fun, and since the Bazel homepage advertises you can build Go projects with Bazel, I thought I'd try to switch a Go project of mine to use Bazel. In particular, here are things I hoped to be able to do with Bazel (from this Makefile):- Build my code. This is pretty well supported by Bazel and rules_go/gazelle.- Run "go test ./...". This is fairly well supported by Bazel.- Run "go test -race ./..." in a CI environment. This is not currently supported (https://github.com/bazelbuild/rules_go/issues/167) and I was wondering if/when I would be able to use this.- Run "go vet ./..." or "go fmt ./...". Currently this requires the use of an external script; I have a small project and I'd rather not clutter up the output by adding a shell script and calling into it from Bazel. https://github.com/bazelbuild/rules_go/issues/511, https://github.com/kubernetes/test-infra/blob/master/verify/verify-govet.sh.- Run third party checkers like the functions in go-tools (https://github.com/dominikh/go-tools), https://github.com/mvdan/unparam, or https://github.com/kisielk/errcheck. Most (all) of these require the GOPATH and GOROOT to be set, but when you run sh_test (which I think you need to do to run these), you can't set environment variables, so I need to run a script and set them in the script, I think? and then also make the right other libraries available in the build step. This is a little more cumbersome than I'd hope, or expect people to set up to get Bazel widely adopted.- Run "go-bindata" to copy files from directories on disk (static, templates etc) into assets/assets.go, so I can compile them into the binary and distribute just that. Here's how I currently do it: https://github.com/kevinburke/go-html-boilerplate/blob/master/Makefile#L46-L50. I haven't tried this yet though since I got discouraged by the other failures.It would be nice if there were more examples of open source Go projects using Bazel? Then I could copy what they do. Do any exist?One nice thing about Make is that you can define shortcuts for common tasks, e.g. "make test", "make assets", etc. Is there a way to do this with Bazel? It can be annoying each time you want to run it to type out e.g. bazel test --test_verbose_timeout_warnings :all //assets:all.Finally, if I manage to figure all of this out, I'd be happy to write about it!Thanks!Kevin
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/b4bef223-1ab6-4f3a-9ac7-d3cd08c7ada3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CAN3hOS_kbSKROZ2v%3Df-NovY9oj_a0yxU0Fyinf_13CzYgEUUaQ%40mail.gmail.com.
--