Skip to content

Support Bazel 0.5.3#531

Closed
jml wants to merge 6 commits into
masterfrom
newer-bazel
Closed

Support Bazel 0.5.3#531
jml wants to merge 6 commits into
masterfrom
newer-bazel

Conversation

@jml

@jml jml commented Aug 5, 2017

Copy link
Copy Markdown
Contributor

It's out, and it has improved cross-compilation support.

Getting this to work was a bit of a saga. See #530 for the gruesome details. In terms of meaningful changes:

Haven't actually tried cross-compiling.

Comment thread Gopkg.toml

# bazel build does not work with earlier versions:
#
# ERROR: /Users/jml/go/src/github.com/weaveworks/cortex/vendor/github.com/weaveworks-experiments/loki/pkg/client/BUILD.bazel:3:1: no such package 'vendor/github.com/openzipkin/zipkin-go-opentracing/_thrift/gen-go/zipkincore': BUILD file not found on package path and referenced by '//vendor/github.com/weaveworks-experiments/loki/pkg/client:go_default_library'.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you got an up to date version of gazelle?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently not.

@jml

jml commented Aug 7, 2017

Copy link
Copy Markdown
Contributor Author

Forgot to test last two commits with make bazel bazel-test, so have reverted them to go back to known good state.

@tomwilkie

Copy link
Copy Markdown
Contributor

I'm +1 on explicit dependancies and +1 on the version upgrades, but -1 on the override. Let me know when you get it working and I'll take another look. When you want to build this in CI (and want to build the protos with bazel) give me a shout, as I have a branch that already does it somewhere.

@jml

jml commented Aug 8, 2017

Copy link
Copy Markdown
Contributor Author

Thanks. I'll look into it. Why are you against the override?

@tomwilkie

tomwilkie commented Aug 8, 2017 via email

Copy link
Copy Markdown
Contributor

@jml

jml commented Sep 5, 2017

Copy link
Copy Markdown
Contributor Author

I haven't forgotten this. I'm just on a tight deadline with some other project work. (I did this on an unusually free weekend against my better judgement).

When you want to build this in CI (and want to build the protos with bazel) give me a shout, as I have a branch that already does it somewhere.

@tomwilkie Could you please point me at that? I would like to do that shortly after merging this.

@jml

jml commented Sep 8, 2017

Copy link
Copy Markdown
Contributor Author

Closed in favour of #557

@jml jml closed this Sep 8, 2017
@bboreham bboreham deleted the newer-bazel branch September 19, 2018 09:10
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

Successfully merging this pull request may close these issues.

2 participants