Skip to content

Added .bazelversion to be consitent with the TF build process #340

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

Merged

Conversation

JimClarke5
Copy link
Contributor

Added .bazelversion to tensorflow-core-api to be consistent with the TF Build process defined at Build from source. The TF build source recommends using Bazelisk which runs the bazel version given in .bazelversion. Otherwise, the exact matching bazel version will need to be installed for each TF version.

This file needs to be kept in sync with @org_tensorflow/.bazel_version.

@Craigacp
Copy link
Collaborator

Could you add a note to CONTRIBUTING.md in the native build section reminding us to keep the .bazelversion in sync with tensorflow/tensorflow? That way we might remember to do it. Or at least have somewhere to point people at when things go wrong.

CONTRIBUTING.md Outdated
@@ -44,6 +44,11 @@ configuration script (`./configure`), and copy the resulting
`.tf_configure.bazelrc` to `tensorflow-core-api`. This overrides the default options, and you can add to it manually (i.e. adding `build --copt="-g"`
to build with debugging info).

The `tensorflow-core/tensorflow-core-api/.bazelversion` file must be kept in sync with `@org_tensorflow/.bazel_version`.
This allows using [Bazelisk](https://github.com/bazelbuild/bazelisk) which runs the bazel version given in .bazelversion instead of having to
physically reinstall a specifc `bazel` version each time the TensorFlow version changes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

"specifc" -> "specific"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

CONTRIBUTING.md Outdated
@@ -44,6 +44,11 @@ configuration script (`./configure`), and copy the resulting
`.tf_configure.bazelrc` to `tensorflow-core-api`. This overrides the default options, and you can add to it manually (i.e. adding `build --copt="-g"`
to build with debugging info).

The `tensorflow-core/tensorflow-core-api/.bazelversion` file must be kept in sync with `@org_tensorflow/.bazel_version`.
Copy link
Collaborator

@karllessard karllessard Jun 17, 2021

Choose a reason for hiding this comment

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

must be (two spaces) -> "must be"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@karllessard karllessard merged commit 430bf9e into tensorflow:master Jun 17, 2021
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.

3 participants