| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
| |
Use BytesIO instead of StringIO, change strings to bytes throughout the
archiving code. Needed to import from Six in a couple of places.
As discussed in #1580
Closes #3850.
PiperOrigin-RevId: 183429066
|
|
|
|
|
|
|
|
|
| |
if not.
Fixes #4065.
Change-Id: I17a5d2ee4befc5e467b0a195311566db246eb167
PiperOrigin-RevId: 183087906
|
|
|
|
|
| |
RELNOTES: None
PiperOrigin-RevId: 179596587
|
|
|
|
|
|
|
|
|
| |
Fixes #4097.
Fixes part of #4310.
Closes #4265.
PiperOrigin-RevId: 179437184
|
|
|
|
|
| |
RELNOTES: None
PiperOrigin-RevId: 178099410
|
|
|
|
|
|
|
|
|
|
|
|
| |
I'm getting
.../bazel-out/host/bin/external/bazel_tools/tools/build_defs/pkg/make_deb.runfiles/bazel_tools/third_party/py/gflags/gflags/__init__.py:284: UserWarning: Flag architecture has a non-None default value; therefore, mark_flag_as_required will pass even if flag is not specified in the command line!
'command line!' % flag_name)
So, let's not mark it as required if a default is passed in!
Change-Id: Iad9a3886ce0ff21ce26eb7fa17a986be4c4af5cf
PiperOrigin-RevId: 176480367
|
|
|
|
|
|
|
|
| |
...so that bazel does not complain about internal files when
run with --all_incompatible_changes.
Change-Id: I9a12a7ab0cd6a92351fe17addd601d531f203aff
PiperOrigin-RevId: 170694212
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current implementation allows the gzip module to use the current
time as a timestamp. Python2 unfortunately doesn't expose this in the
tarfile module so it's easy to overlook.
This patch separates the gzip process by creating a separate file
object manually and bypassing the gzip compression in the tarfile
module.
Fixes #1844
Change-Id: I19b265bf55314d38bdd53ccf20c49ecfe6d7618b
PiperOrigin-RevId: 170077036
|
|
|
|
|
|
|
|
|
|
|
| |
This patch sets the mtime attribute of gzip explicitly to zero.
Python2 doesn't expose this via the tarfile module so we have to
create an explicit gzip instance.
Fixes #3723
Change-Id: I4ce38a317bb92481562b67075d1272f1aebdf9d6
PiperOrigin-RevId: 169881504
|
|
|
|
|
|
| |
Closes #3640.
PiperOrigin-RevId: 167578762
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Change-Id: Ib90ce99cc2e229bbe749130dbde517a075d6e333
PiperOrigin-RevId: 167319258
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
fix the downstream breaks that led to the initial rollback
Change-Id: Ib90ce99cc2e229bbe749130dbde517a075d6e333
PiperOrigin-RevId: 167247311
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Break docker builds
*** Original change description ***
Don't prepend ./ to filenames in pkg_tar rule
Change-Id: Ib90ce99cc2e229bbe749130dbde517a075d6e333
PiperOrigin-RevId: 166679861
|
|
|
|
|
| |
Change-Id: Ib90ce99cc2e229bbe749130dbde517a075d6e333
PiperOrigin-RevId: 166677549
|
|
|
|
|
|
|
|
| |
Put the label of the target in the warning message. Without it, it's
hard to figure out which target one should fix.
Change-Id: I694737e80ed74250ea793402443eaf5d2a13d622
PiperOrigin-RevId: 166184377
|
|
|
|
|
|
|
|
|
| |
So that the user knows the real action to do.
Fixes #3401
Change-Id: I1f7ab258b22f832f31c35c83ff52b33bddf0732a
PiperOrigin-RevId: 165931509
|
|
|
|
|
|
|
|
| |
In the future += on lists will work like .extend (by mutating the list) instead
of copying the list items to a new list (current behavior). Some .bzl files
need to be cleaned up to be compatible with both behaviors.
PiperOrigin-RevId: 165528261
|
|
|
|
|
| |
Change-Id: I37bb40cae9d8a6ca99460df83b33541972926766
PiperOrigin-RevId: 164726294
|
|
|
|
| |
PiperOrigin-RevId: 162742684
|
|
|
|
|
|
|
|
|
|
| |
The existing support for including a flat list of labels was moved to the `srcs` attribute.
See https://github.com/bazelbuild/bazel/issues/3317 for context and motivation.
Closes #3318.
PiperOrigin-RevId: 161645944
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Without this change, any build using python3 and involving this tool fails with:
Traceback (most recent call last):
File ".../bazel-out/host/bin/external/bazel_tools/tools/build_defs/pkg/build_tar.runfiles/__main__/../bazel_tools/tools/build_defs/pkg/build_tar.py", line 22, in <module>
from tools.build_defs.pkg import archive
File ".../bazel-out/host/bin/external/bazel_tools/tools/build_defs/pkg/build_tar.runfiles/bazel_tools/tools/build_defs/pkg/archive.py", line 17, in <module>
from StringIO import StringIO
ModuleNotFoundError: No module named 'StringIO'
Closes #2865.
PiperOrigin-RevId: 154808860
|
|
|
|
|
|
| |
docker_build to rules_docker.
PiperOrigin-RevId: 154431359
|
|
|
|
|
| |
Change-Id: Ic8c57c0ce78b5875135d5d1f19629ee40fd8f5f2
PiperOrigin-RevId: 153718869
|
|
|
|
|
|
|
|
| |
--
Change-Id: Ia6c94304fded25de48eda2060c5ec11368ff172c
Reviewed-on: https://cr.bazel.build/8991
PiperOrigin-RevId: 148286095
MOS_MIGRATED_REVID=148286095
|
|
|
|
|
|
|
|
|
|
| |
RELNOTES: Adds pkg_rpm rule for generating RPM packages.
--
Change-Id: I2e83161e29218700bbe7e62186b0b1667e555a7c
Reviewed-on: https://cr.bazel.build/8590
PiperOrigin-RevId: 146477490
MOS_MIGRATED_REVID=146477490
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
*** Reason for rollback ***
Does not build: http://ci.bazel.io/job/Bazel/1129/
*** Original change description ***
Export dot-format graphs as-is and download dot as an external repo
--
PiperOrigin-RevId: 142748151
MOS_MIGRATED_REVID=142748151
|
|
|
|
|
|
| |
--
PiperOrigin-RevId: 142692462
MOS_MIGRATED_REVID=142692462
|
|
|
|
|
|
|
| |
This should allow to use pkg_tar from project that use python 3 (e.g. TensorFlow).
--
MOS_MIGRATED_REVID=139561406
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=137500893
|
|
|
|
|
|
|
|
|
|
|
| |
I'm not sure how this got all crazy the last time I touched this file!
This restores the earlier sane line wrapping. Changes are purely
whitespace.
--
Change-Id: I6bc743de132be74b1be64c45fceba73315d06e72
Reviewed-on: https://bazel-review.googlesource.com/c/5750/
MOS_MIGRATED_REVID=135365348
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=132422029
|
|
|
|
|
|
|
| |
--
Change-Id: Ib2066597f3aeec2b160dd56fd19c60d618cb925d
Reviewed-on: https://bazel-review.googlesource.com/#/c/4280
MOS_MIGRATED_REVID=131699503
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pkg_deb can have either conffiles or conffiles_file parameter that propagates
the list of conffiles into the deb archive.
Also the tests in //tools/build_defs/pkg were fixed to run against the rules
from the source tree and not from the bazel distribtution.
--
Change-Id: I61c447feef16511acbb0078d91954dcd7d3375f4
Reviewed-on: https://bazel-review.googlesource.com/#/c/5610
MOS_MIGRATED_REVID=131391925
|
|
|
|
|
|
|
| |
--
Change-Id: I49d4bcdb60052a5cf94049f962732ee2167828f1
Reviewed-on: https://bazel-review.googlesource.com/#/c/4300
MOS_MIGRATED_REVID=129615052
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=126687108
|
|
|
|
|
|
|
|
|
|
| |
Declare openjdk-9-jdk as Conflicts
Progress towards #1456
--
Change-Id: I67c17b78f90f81dbcc9c39bf6f3915789662fa94
Reviewed-on: https://bazel-review.googlesource.com/#/c/3951
MOS_MIGRATED_REVID=126402113
|
|
|
|
|
|
|
| |
Fixes #1403
--
MOS_MIGRATED_REVID=125543227
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=125429700
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, _short_path_dirname would take a short path like "libfoo.jar",
rfind would return -1, sp[:-1] would return "libfoo.ja", and then
_dest_path would strip that prefix off of "libfoo.jar", leaving just "r".
Also added some unit tests for these functions.
Fixes #1253.
--
MOS_MIGRATED_REVID=122527723
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
local instance of bazel.io site.
* Add a new genrule rule that runs the new jekyll-tree.sh to do the following:
* Combine the generated docs for the Build Encyclopedia and Skylark Library
with the static site docs
* Combine the README.md files for the Docker and Packaging rules with the
Jekyll tree
* Process the generated docs, replaces instances of "blaze" with "bazel",
etc.
* Add scripts/serve-docs.sh script that can be used to bring up a local
instance of the bazel.io website.
As of this patch, it is possible to construct the full Bazel.io site tree from
the master branch.
--
MOS_MIGRATED_REVID=121813688
|
|
|
|
|
|
|
| |
Fixes #999
--
MOS_MIGRATED_REVID=118675703
|
|
|
|
|
|
|
|
|
| |
line
Big pkg can run over the command line limit.
--
MOS_MIGRATED_REVID=115950963
|
|
|
|
|
|
|
| |
Fixes #864.
--
MOS_MIGRATED_REVID=114208872
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will fix some issue with loading skylark rules from @bazel_tools.
Tested with ./compile.sh all and also a project that use pkg_tar from
@bazel_tools (which is broken at HEAD).
--
Change-Id: Iffbb7134ef5fee497890c4d01b85084973d45ad0
Reviewed-on: https://bazel-review.googlesource.com/2800
MOS_MIGRATED_REVID=113508661
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=113052852
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By default wrapping can split on `-` characters which creates the chance that any
dependency with a `-` in it that falls near the wrap threshold will get
split along two lines and render the control file invalid.
> Text is preferably wrapped on whitespaces and right after the hyphens
> in hyphenated words; only then will long words be broken if necessary,
> unless TextWrapper.break_long_words is set to false.
https://docs.python.org/3.1/library/textwrap.html#textwrap.TextWrapper.break_long_words
Fixes #772.
--
Reviewed-on: https://github.com/bazelbuild/bazel/pull/777
MOS_MIGRATED_REVID=111925490
|
|
|
|
|
|
|
|
| |
This is required per official documentation:
https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
--
MOS_MIGRATED_REVID=110235045
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There is no tars arg. There is a deps arg that appears to work like the
tars arg is described in the docs.
There is also no debs arg.
Signed-off-by: Warren Turkal <wt@penguintechs.org>
--
Change-Id: If11e8bcae33b91c41eb11e90fa479becbb36d93c
Reviewed-on: https://bazel-review.googlesource.com/2393
MOS_MIGRATED_REVID=108962257
|
|
|
|
|
|
|
|
|
|
| |
These are quite handy for integration with apt repository management
tooling such as reprepro.
--
Change-Id: I865fba846b2c0690ddcc558484462dd3c3e62373
Reviewed-on: https://bazel-review.googlesource.com/#/c/2291/4
MOS_MIGRATED_REVID=108603643
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Various tools will break if deb filenames don't follow the right
format.
Retains a symlink from the <rulename>.deb to the new filename for
compatibility.
--
Change-Id: Ib8ba5b61fcbfe95469f0d9296a932b2a468bc4c2
Reviewed-on: https://bazel-review.googlesource.com/#/c/2290
MOS_MIGRATED_REVID=108590335
|