aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_defs/pkg/pkg.bzl
Commit message (Collapse)AuthorAge
* Add --incompatible_disable_deprecated_attr_params to disable some deprecated ↵Gravatar cparsons2018-07-16
| | | | | | | parameters of the skylark attr module. RELNOTES: None. PiperOrigin-RevId: 204797954
* Make tools in action inputs an error.Gravatar tomlu2018-06-02
| | | | | | | | | | Supporting tools in inputs introduces a slow linear scan. Such tools should be moved to the 'tools' attribute. If --incompatible_no_support_tools_in_action_inputs is set the inputs are scanned, but a helpful error message is issued to the user. Eventually we will remove the slow scanning. Errors will surface in the execution phase instead of during analysis, and the resulting error messages will be less obvious. RELNOTES: None RELNOTES[INC]: With --incompatible_no_support_tools_in_action_inputs enabled, Skylark action inputs are no longer scanned for tools. Move any such inputs to the newly introduced 'tools' attribute. PiperOrigin-RevId: 198996093
* Format all bzl files with buildifierGravatar vladmos2018-06-01
| | | | | | This CL aslo enables a presubmit check for correct formatting of all bzl files in //third_party/bazel. PiperOrigin-RevId: 198857055
* Add ability to add runfiles to tarGravatar Christian Verkerk2018-05-29
| | | | | | Closes #5044. PiperOrigin-RevId: 198399012
* Automatic code cleanup.Gravatar laurentlb2018-04-12
| | | | PiperOrigin-RevId: 192587935
* Support for empty_files and empty_dirs in pkg.Gravatar Pawe? Zuzelski2018-03-27
| | | | | | | | | | | | Backport recent changes to build_tar tool in bazelbuild/rules_docker: https://github.com/bazelbuild/rules_docker/pull/310 - add --empty_file and --empty_dir flags to build_tar.py, allowing creation of empty files and dirs with specified mode. - expose those flags as empty_files and empty_dirs parameters to pkg_tar rule. Closes #4837. PiperOrigin-RevId: 190610460
* pkg.bzl: adapt to upcoming incompatible changesGravatar Klaus Aehlig2018-03-26
| | | | | | | | Prepare pkg.bzl to be compliant with upcoming Skylark changes. With this change, one can use pkg_tar even if using --all_incompatible_changes. Change-Id: Iff0ed50bda1f93d9f606b783295b049bdf15d242 PiperOrigin-RevId: 190443156
* Automatic code cleanup.Gravatar laurentlb2018-03-07
| | | | PiperOrigin-RevId: 188182739
* tools/build_defs/pkg/pkg.bzl: move load statement to the beginningGravatar Klaus Aehlig2017-10-02
| | | | | | | | ...so that bazel does not complain about internal files when run with --all_incompatible_changes. Change-Id: I9a12a7ab0cd6a92351fe17addd601d531f203aff PiperOrigin-RevId: 170694212
* Improve pkg_tar warning message.Gravatar Benjamin Peterson2017-08-23
| | | | | | | | 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
* More explicit warning for pkg_tar's filesGravatar Damien Martin-Guillerez2017-08-22
| | | | | | | | | So that the user knows the real action to do. Fixes #3401 Change-Id: I1f7ab258b22f832f31c35c83ff52b33bddf0732a PiperOrigin-RevId: 165931509
* Prepare .bzl files to the new semantics of += on listsGravatar vladmos2017-08-17
| | | | | | | | 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 `files` attr of `pkg_tar` to a dict.Gravatar John Millikin2017-07-12
| | | | | | | | | | 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
* Add possibility to set ownership of files on pkg_tarGravatar Damien Martin-Guillerez2017-04-24
| | | | | Change-Id: Ic8c57c0ce78b5875135d5d1f19629ee40fd8f5f2 PiperOrigin-RevId: 153718869
* Make bazel_bootstrap_distfile_test work on WindowsGravatar Yun Peng2017-02-23
| | | | | | | | -- Change-Id: Ia6c94304fded25de48eda2060c5ec11368ff172c Reviewed-on: https://cr.bazel.build/8991 PiperOrigin-RevId: 148286095 MOS_MIGRATED_REVID=148286095
* Global cleanup change.Gravatar Vladimir Moskva2016-09-07
| | | | | -- MOS_MIGRATED_REVID=132422029
* pkg_deb: Make distribution and urgency adjustableGravatar Benjamin Staffin2016-08-31
| | | | | | | -- Change-Id: Ib2066597f3aeec2b160dd56fd19c60d618cb925d Reviewed-on: https://bazel-review.googlesource.com/#/c/4280 MOS_MIGRATED_REVID=131699503
* Add conffiles support to pkg_debGravatar Michal Rydlo2016-08-26
| | | | | | | | | | | | | 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
* Global cleanup change.Gravatar Laurent Le Brun2016-07-07
| | | | | -- MOS_MIGRATED_REVID=126687108
* Fixed Bazel deb package dependency on Ubuntu 16.04Gravatar Yun Peng2016-07-01
| | | | | | | | | | 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
* Support top-level packages in pkg_tarGravatar Kristina Chodorow2016-05-17
| | | | | | | | | | | | | 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
* pkg: use a flag file instead of passing the list of arguments in the command ↵Gravatar Damien Martin-Guillerez2016-03-01
| | | | | | | | | line Big pkg can run over the command line limit. -- MOS_MIGRATED_REVID=115950963
* Add the @bazel_tools prefix to docker and pkg toolingGravatar Damien Martin-Guillerez2016-01-27
| | | | | -- MOS_MIGRATED_REVID=113052852
* Generate .changes files to go along with .deb packagesGravatar Benjamin Staffin2015-11-24
| | | | | | | | | | 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
* Generate proper filenames for .deb packagesGravatar Benjamin Staffin2015-11-24
| | | | | | | | | | | | | 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
* Rollback of commit 07475c7b3812d6194602213a69e6e9f70643b32a.Gravatar Damien Martin-Guillerez2015-11-20
| | | | | | | | | | | | *** Reason for rollback *** Roll-forward with fixes: - Tests were missing for xzcat - xz output was not supported - bz2 input was missing declaration -- MOS_MIGRATED_REVID=108325435
* Allow udeb as input of docker debsGravatar Damien Martin-Guillerez2015-11-17
| | | | | | | Fixes #618. -- MOS_MIGRATED_REVID=107957576
* Fix bash completion script location in the Debian packageGravatar Brian Silverman2015-11-06
| | | | | | | | | | | | It was ending up installed as /bazel. Also, the documented way of telling pkg_tar not to strip off the prefix didn't work. -- Change-Id: I593d17690526c614697369cab543aff1ba67de0a Reviewed-on: https://bazel-review.googlesource.com/#/c/2222/ MOS_MIGRATED_REVID=107229260
* Introduce debian and tar packaging rulesGravatar Damien Martin-Guillerez2015-10-09
This refactor a bit the docker rules to reuse the tarball construction. Also introduce the debian archive for the release process. RELNOTES[NEW]: Debian and tar packaging is now supported (see tools/build_defs/pkg/README.md). -- MOS_MIGRATED_REVID=105053604