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

Add compatibility repository for supporting older Bazel versions #1933

Merged
merged 1 commit into from
Feb 3, 2019

Conversation

jayconrod
Copy link
Contributor

io_bazel_rules_go_compat is a new repository, which contains
compat.bzl, a symbolic link to a file in go/private/compat. There are
multiple versions that compat.bzl may point to (v18.bzl, v22.bzl
initially). These files provide the same definitions with different
implementations.

Initially, this provides abstraction for accessing cc and proto
providers, which are changing in Bazel 0.23.

Fixes #1888

io_bazel_rules_go_compat is a new repository, which contains
compat.bzl, a symbolic link to a file in go/private/compat. There are
multiple versions that compat.bzl may point to (v18.bzl, v22.bzl
initially). These files provide the same definitions with different
implementations.

Initially, this provides abstraction for accessing cc and proto
providers, which are changing in Bazel 0.23.

Fixes bazelbuild#1888
@jayconrod jayconrod merged commit 8670623 into bazelbuild:master Feb 3, 2019
@jayconrod jayconrod deleted the compat branch February 3, 2019 19:08
jayconrod added a commit that referenced this pull request Feb 25, 2019
io_bazel_rules_go_compat is a new repository, which contains
compat.bzl, a symbolic link to a file in go/private/compat. There are
multiple versions that compat.bzl may point to (v18.bzl, v22.bzl
initially). These files provide the same definitions with different
implementations.

Initially, this provides abstraction for accessing cc and proto
providers, which are changing in Bazel 0.23.

Fixes #1888
cloud-robotics-github-robot pushed a commit to googlecloudrobotics/core that referenced this pull request Mar 5, 2019
Due to a change in how the dependencies work, we need to be careful to
load go_repository from deps.bzl, not def.bzl:

bazelbuild/rules_go#1933

Additionally, Gazelle 0.17.0 seems to find the dependencies in
src/.gopath, so I've added a gazelle:ignore directive for them. At the
same time, I've added the path to .bazelignore, so that Bazel doesn't
try to build or run files in there.

This pulls in some Bazel compatibility fixes (#2).

Change-Id: Ic215ca30c0e6bb438e8fff134e439e4e4a032879
GitOrigin-RevId: 8c7708b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants