You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow installing older Bazel versions from the custom Bazel APT repository #128
When using the Bazel custom APT repository (recommended) method for installing Bazel on Debian/Ubuntu, it's only possible to install the latest version:
> apt-get install bazel=0.5.3
[...]
E: Version '0.5.3' for 'bazel' was not found
> apt-get install bazel=0.5.4
[...]
The following additional packages will be installed:
[...]
Reacted by Antoine Pelisse, Trystan Johnson, Dmitriy Ivanov, Piotr Czapla, Ely Spears, David Judd, Mouad Benchchaoui, Kah Keng Tay, Kar, imcginnis and 24 more
Agree that this would be very useful. One normally considers "stable" to mean that new releases will have only bug fixes and backwards compatible changes. Right now, bazel's "stable" releases don't meet that definition of stable.
Few days after releasing tensorflow 1.13 there is a new bazel 0.23 which breaks the compilation.
So no tensorflow release (and probably not event master) could be compiled with bazel from apt repository, since it contains only 0.23.
I tried to find .deb for older releases ...
I have Ubuntu 16.04 so my start point is apt source deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8
So all older releases could be downloaded without any issue.
Problem is that it is not possible to verify files by gpg signature to confirm they are from legitimate source. Packages file only contains the latest bazel build, so:
apt isn't able to offer older package versions
we are not able to manually download older .deb, verify signature and hashes, install it using dpkg
(Then apt-mark hold bazel would stay on working version as a "hotfix" of permanently broken builds. Although I personally don't like it, I have to choose the lesser evil, because I really need to compile things.)
IMO regenerating Packages file to contain hashes for all .deb would fix this issue. Feasible?
Reacted by Yeshwanth Venkatesha, GurunathB and Hanxue
Maybe.
But I think that this ticket is about availability of older versions from apt repository.
So if older versions are provided through "binary installer" method, then why not to provide the same through "custom APT repository"?
TL;DR version ...
(Please take into account that my comments are based just on few months of compiling TF as a user, I'm neither TF developer nor experienced bazel user.)
If Bazel releases still break TF constantly, maybe we should increase the test coverage on our CI?
It you have the capacity to do it then why not. It might help to identify issues and help to move from deprecated to current stable bazel features.
On the other hand, my uneducated opinion ...
If there is a frequent need to use exact bazel versions (resp. tools like bazelisk) then there is a insufficient level of backward compatibility.
Even if you one day push some version to upstream debian/ubuntu then it will be rarely usable because this single version won't be compatible with projects one needs to compile.
So instead of going around it it might be more beneficial for the users to provide stronger and longer backward compatibility guarantee. And also increase the convenience of installation (apt, apt in upstream).
Activity
AnomalRoil commentedon Jan 3, 2018
This would really be a good thing. Any update regarding the current status of this issue?
galv commentedon Jan 6, 2018
Agree that this would be very useful. One normally considers "stable" to mean that new releases will have only bug fixes and backwards compatible changes. Right now, bazel's "stable" releases don't meet that definition of stable.
Bazel 0.5.4 perhaps?
drigz commentedon Jan 9, 2018
A workaround is to manually install the dependencies and then install the .deb from GitHub:
philwo commentedon Jan 12, 2018
I agree that this sounds like a useful thing to have. I’ll see that we get this done.
zhanwenchen commentedon Apr 15, 2018
Any update? I confirm that 0.12.0 breaks the tensorflow source installation but 0.11.1 doesn't, as the tensorflow thread documents.
georgewfraser commentedon Aug 13, 2018
The bazel upgrade 4 hours ago just broke our build. If we could pin a specific version we could work around this, now we're scrambling.
philwo commentedon Sep 10, 2018
We'll make individual versions available on the repository and also our Homebrew tap in the future, but we aren't there yet - sorry!
figroc commentedon Nov 22, 2018
your new releases break tensorflow building constantly
Explicitly install bazel version 0.15.0
terradolor commentedon Feb 27, 2019
Few days after releasing tensorflow 1.13 there is a new bazel 0.23 which breaks the compilation.
So no tensorflow release (and probably not event master) could be compiled with bazel from apt repository, since it contains only 0.23.
jin commentedon Feb 27, 2019
Can we work with Tensorflow to integrate https://github.com/philwo/bazelisk and have a .bazelversion in their repository? @philwo @laurentlb @fweikert
terradolor commentedon Feb 28, 2019
I tried to find .deb for older releases ...
I have Ubuntu 16.04 so my start point is apt source
deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8It leads to following links:
There are also files
So all older releases could be downloaded without any issue.
Problem is that it is not possible to verify files by gpg signature to confirm they are from legitimate source.
Packagesfile only contains the latest bazel build, so:(Then
apt-mark hold bazelwould stay on working version as a "hotfix" of permanently broken builds. Although I personally don't like it, I have to choose the lesser evil, because I really need to compile things.)IMO regenerating
Packagesfile to contain hashes for all .deb would fix this issue. Feasible?fweikert commentedon Feb 28, 2019
terradolor commentedon Mar 1, 2019
Short version ...
Maybe.
But I think that this ticket is about availability of older versions from apt repository.
So if older versions are provided through "binary installer" method, then why not to provide the same through "custom APT repository"?
TL;DR version ...
(Please take into account that my comments are based just on few months of compiling TF as a user, I'm neither TF developer nor experienced bazel user.)
It you have the capacity to do it then why not. It might help to identify issues and help to move from deprecated to current stable bazel features.
On the other hand, my uneducated opinion ...
If there is a frequent need to use exact bazel versions (resp. tools like bazelisk) then there is a insufficient level of backward compatibility.
Even if you one day push some version to upstream debian/ubuntu then it will be rarely usable because this single version won't be compatible with projects one needs to compile.
So instead of going around it it might be more beneficial for the users to provide stronger and longer backward compatibility guarantee. And also increase the convenience of installation (apt, apt in upstream).
meteorcloudy commentedon Dec 21, 2022
Please consider using Bazelisk as it's the recommended tool if you want to switch between Bazel versions conveniently.