Repository navigation
Fix issue of branch switching not working with bazel - #16196
Merged
Merged
Conversation
Contributor
|
Another fix, which I pretty sure will work, is tell Bazel within the repo rule that it depends on .git/HEAD. Then whenever that file changes Im pretty sure the repo rule should be rerun. I think you can add something like... r = repository_ctx.execute(["test", "-f", "%s/.git/logs/HEAD" % tensorflow_root_path]) ...to the git_configure repo rule. |
This fix tries to address the issue raised in 15957 where bazel stops working after switching git branch, and reconfigure with `./configure` will not work as well. This fix adds a quick fix as was suggested, by having export TF_CONFIG_TIME="$(date)" in configure.py and add it to the environ list in git_configure.bzl. This fix fixes 15957. Signed-off-by: Yong Tang <[email protected]>
Signed-off-by: Yong Tang <[email protected]>
Signed-off-by: Yong Tang <[email protected]>
yongtang
force-pushed
the
15957-branch-switch
branch
from
January 19, 2018 19:11
a83f9e4 to
5410ef8
Compare
Member
Author
|
@case540 Thanks for the help. I tested locally and it works as expected. The PR has been updated. Please take a look. |
case540
approved these changes
Jan 19, 2018
case540
left a comment
Contributor
There was a problem hiding this comment.
Thanks for fixing this :D
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fix tries to address the issue raised in #15957 where bazel stops working after switching git branch, and reconfigure with
./configurewill not work as well.This fix adds a quick fix as was suggested, by having
export TF_CONFIG_TIME="$(date)"in configure.py and add it to the environ list in git_configure.bzl.This fix fixes #15957.
Signed-off-by: Yong Tang [email protected]