Skip to content

Conversation

meteorcloudy
Copy link
Member

The newest bazel version number is 0.2.2b, when need to strip 2b

…elease

The newest bazel version number is 0.2.2b, when need to strip 2b
@tensorflow-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

version_tuple = ()
for number in parts[0].split('.'):
version_tuple += (int(number),)
version_tuple += (int(number.strip('abcdefghij')),)
Copy link

Choose a reason for hiding this comment

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

can you replace 'int' with 'str' here ?

version_tuple += (str(number),)

We'll compare strings lexicographically, which will probably solve your problem here.

Ideally we'd all use semantic versioning conventions though.

The newest bazel version is 0.2.2b, which makes int('2b') not working anymore.
@vrv
Copy link

vrv commented Apr 26, 2016

There are probably better ways to do this, but in the interest of unbreaking people, this seems fine. Going to test and merge if successful.

@vrv
Copy link

vrv commented Apr 26, 2016

@tensorflow-jenkins test this please

@vrv vrv merged commit 3be665f into tensorflow:master Apr 26, 2016
@yvirin
Copy link

yvirin commented Apr 27, 2016

hurray

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.

5 participants