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
The version_file attribute of pkg_deb is not working correctly. The name of the debian package that bazel generates should be in the form of name_version_arch.deb which is true when you have a pkg_deb with "version". But for some reason, you end up with name__arch.deb when you have the "version_file" attribute. The .changes file does contain the version in the text file, but the name does not end up with it
On a bazel build with pkg_deb that has version:
builder@container:~/mybazel/bazel-bin$ ls
mydeb.deb mydeb_1.1.1_amd64.changes mydeb_1.1.1_amd64.deb mytar.manifest mytar.tar.gz src
On a bazel build with pkg_deb that has version_file:
This not possible given the relative ordering of analysis and execution in Bazel.
The file name is defined at analysis time, which must complete before we execute the actions required by the rule.
Reading the content of the version file happens in that execution phase.
It would be possible to detect that the user specified the version file and neither the file name or the version, os that the file name would be mydeb_XXXX_x86.deb. Or maybe it could fail hard.
aiuto
added
the
p4
An idea that we are not considering working on at this time.
label
Apr 1, 2024
The version_file attribute of pkg_deb is not working correctly. The name of the debian package that bazel generates should be in the form of name_version_arch.deb which is true when you have a pkg_deb with "version". But for some reason, you end up with name__arch.deb when you have the "version_file" attribute. The .changes file does contain the version in the text file, but the name does not end up with it
On a bazel build with pkg_deb that has version:
On a bazel build with pkg_deb that has version_file:
The text was updated successfully, but these errors were encountered: