Update dependency rules_pkg to v0.10.1 #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.2.4->0.10.1Release Notes
bazelbuild/rules_pkg (rules_pkg)
v0.10.1Compare Source
This is a bug fix release.
Bug Fixes
* Temporarily restore //mappings.bzl and //pkg.bzl (#817)
* Fix RPM package release and version files expansion (#816)
* Apply tar remap_paths to runfiles full paths (#812)
* Use raw string for docstring that contains a backslash (for Python 3.12) (#815)
Thanks to: Alex Bozhenko, Chuck Grindel, Diego Ortin, and Tomasz Wojno
v0.10.0Compare Source
New Features
Obsoletestag in RPM definition (#778)Bug Fixes
%{_builddir}macro (#792)**Breaking Changes
Thanks to: Adam Azarchs, Alex Eagle, August Karlstedt, Austin Schuh, Adrian Vogelsgesang,
flode, Florian Scheibner, Ignas Kaziukėnas, Jean-Hadrien Chabran, Matt,
Mike Kelly, Paul Draper, Sam Schwebach, Tomasz Wojno, and Vertexwahn
for contributions to this release.
v0.9.1Compare Source
Re-release of 0.9.0 to correct a mismatch of artifacts between github.com and mirro.bazel.build
WORKSPACE setup
Using the rules
See the docs
v0.9.0Compare Source
New Features
Incompatible Changes
** Bug Fixes **
Thanks to
Tomasz Wojno, Clint Harrison, Qingyu Sui, Ryan Beasley.
WORKSPACE setup
Using the rules
See the source.
v0.8.1Compare Source
New Features
Fixes
to_list()calls (#639)Thanks to
Alex Eagle, Nils Semmelrock, Doug Rabson, Fabian Meumertzheim
WORKSPACE setup
Using the rules
See the documentation
v0.8.0Compare Source
New Features
Fixes #20
Bug Fixes
--incompatible_config_setting_private_default_visibilityv0.7.1Compare Source
WORKSPACE setup
Using the rules
See the source and docs.
Major bug fixes since 0.6.x
#612 Directories in tree artifacts created with the wrong mode
#600 Debian description field formatting
#601 Tar format is explicitly GNU rather than accidentally flipping to PAX for some Python versions.
v0.7.0Compare Source
New Features
renames.artifact_nametoprint_relnotes(#541)only need to load what you actually need.
Potentially breaking changes
Bug fixes:
Fixhttps://github.com/bazelbuild/rules_pkg/issues/572/572
Contributors
Thanks to: Andrew Psaltis, Gunnar Wagenknecht, and Sven Mueller
for contributions to this release.
v0.6.0Compare Source
This revision requires Bazel 4.x or greater
Visible changes
include_runfilessupport for pkg_tar. (#398)Bug fixes:
%dirRPM filetag whenPackageDirsInfois provided (#473)Internal changes
Contributors
Thanks to: Andrew Psaltis, Grant Monroe, Gunnar Wagenknecht, Ken Conley, Motiejus Jakštys, and Ryan Beasley
for contributions to this release.
v0.5.1Compare Source
New features
pkg_deb(architecture_file)to provide a way to set the Debian package architecture from the content of a file created at build time. (#390)pkg_installfor a "make install"-like experience in Bazel (#380)pkg_filegroupframework inpkg_zip(#373)Closed bugs
v0.5.0Compare Source
New Features
pkg_*rules as srcs ofpkg_tar(#367)Adds support for
pkg_mklink,pkg_mkdirs,pkg_filesandpkg_filegrouptopkg_tar.filter_directoryfor basic TreeArtifact processing (#331)stampsupport topkg_tar(#288) andpkg_zip(#365)Done in the style of cc_binary
stampattribute (1=stamp, 0=no stamp, -1=follow--stamp)--stampcommand line optionpkg_rpmchangespkg_rpmto mainline (#338)find_system_rpmbuildrepo rule depend onPATH(#348)rpmbuildtoolchain (#329)pkg_tarsupport for custom compression program (#320)pkg_tarby ignoring 'path' PAX header. (#250) (#326)This needs user feedback to discover the most pleasing mode. For this
release, I did
blaze build distro:changelog.txtthen took the result toupdate this file (CHANGELOG.md). I would like to do better than that. Thoughts
from users are welcome.
Internal changes
path.bzland improve testing (#359)build_tar,build_zipand helpers to //private (#353)Incompatible changes
Contributors
This release contains contributions and fixes from aiuto, Alex Eagle,
Andrew Psaltis, Greg Bowyer, katre, Michael Hackner, and Rafael Marinheiro
v0.4.0Compare Source
New Features
package_file_name&package_variablesto allow dynamically named output files.rpmbuildis now a toolchain allowing you better control using your own vs. the system onepkg_filegrouprule suite are available in @rules_pkg//:mappings.bzl, but there are no packaging rules that use it at this time. Rules that use it will be added in 1.0Incompatible Changes
archive_nameis now deprecated. To be removed before 1.0WORKSPACEsetupContributors
This release contains contributions and fixes from Andrew Psaltis, dmayle, Konstantin Erman, Martin Medler, Motiejus Jakštys, Thi Doãn, Thomas Gish, and Xavier Bonaventura.
v0.3.0Compare Source
This release features contributions by the Bazel team and
andreas-0815-qwertz, Andrew Psaltis, Daniel Sullivan, David Schneider,
Elliot Murphy, Matthias Frei, Matt Mikitka, Pras Velagapudi, Shimin Guo,
and Ulf Adams
New Features
commit
a4296daAuthor: Andrew Psaltis apsaltis@vmware.com
Date: Thu Oct 1 17:55:20 2020 -0400
experimental/rpm.bzl: Make compression settings configurable (#240)
This change adds a new attribute binary_payload_compression to the
experimental pkg_rpm rule. It is implemented in terms of command-line options
to rpmbuild(8), which are passed in via make_rpm.py.
We do this by instructing rpmbuild to define the _binary_payload macro on its command line. Tests are also provided.
This can also be added to the non-experimental pkg_rpm rule in the future; the
code would be similar.
Fixes #239.
commit
aa18e17Author: aiuto aiuto@google.com
Date: Tue Sep 29 22:32:00 2020 -0400
Provide capability to rename archives based on configuration values (#198)
TODO for later
commit
55a1a9bAuthor: Andrew Psaltis apsaltis@vmware.com
Date: Thu Sep 24 15:16:00 2020 -0400
Use symlink actions for RPM packages instead of custom actions (#236)
Like #232, but in the RPM builders. No other callouts to
ln(1)are madedirectly by
rules_pkg.commit
effac40Author: aiuto aiuto@google.com
Date: Thu Sep 24 08:16:35 2020 -0400
Add LICENSE to distribution tarball (#233)
Fixes #231
commit
bd9c771Author: Ulf Adams ulfjack@users.noreply.github.com
Date: Thu Sep 24 03:35:39 2020 +0200
Use a symlink action, not a shell script (#232)
Using a shell script is not portable and also causes issues with
build-without-the-bytes, which can handle local symlink actions (at least in
principle), but cannot handle symlinks returned from remote executiohttps://github.com/bazelbuild/bazel/issues/11532zel/issues/11532.
commit
60fbda7Author: Daniel Sullivan danielalexandersullivan@gmail.com
Date: Thu Sep 10 10:00:48 2020 -0400
Avoid stripping prefixes with incomplete directory names.
commit
e0d807dAuthor: David Schneider dschneider@tableau.com
Date: Tue Sep 8 18:02:30 2020 -0700
Add attribute strip_prefix to pkg_zip (#221) (#230)
commit
2ad5bd8Author: Andrew Psaltis apsaltis@vmware.com
Date: Wed Aug 26 23:02:56 2020 -0400
pkg_rpm_ex: Provide in-rule dependency specifications (#224)This change provides four additional attributes to the experimental
pkg_rpmrule, namely:
conflicts,string_list, corresponding theConflictstagprovides,string_list, corresponding theProvidestagrequires,string_list, corresponding theRequirestagAdditionally:
requires_contextual,string_list_dict, providing the capability to specifytags like
Requires(postun).Unit tests were also provided. Non-rpm input files for the
pkg_rpm_exoutputtest have now been given the ".csv" extension to better help identify that they
are delimited files (but not strictly comma-delimited).
Note that these changes only impact the "strong" dependencies between packages;
[weak dependencies] like "Suggests" and "Recommends" are not explicitly
supported, but can be added in the future following a similar pattern.
Fixes #223.
[weak dependencies]: https://rpm.org/user_doc/dependencies.html#weak-dependencies
commit
30bb5b2Author: Shimin Guo shimin.guo@mixpanel.com
Date: Wed Aug 26 19:30:29 2020 -0700
Support "provides" in pkg_deb (#225)
commit
569a0e5Author: dannysullivan danielalexandersullivan@gmail.com
Date: Mon Aug 24 18:23:12 2020 -0400
Avoid stripping prefixes with incomplete directory names.
commit
f7cec56Author: Daniel Sullivan danielalexandersullivan@gmail.com
Date: Thu Aug 20 10:44:46 2020 -0400
Remove support for Python 2 (#222)
commit
4ad8aa0Author: Tony Aiuto aiuto@google.com
Date: Fri Aug 7 11:46:28 2020 -0400
Remove testenv.sh. It is no longer used.
commit
e1b3beaAuthor: aiuto aiuto@google.com
Date: Fri Aug 7 11:33:01 2020 -0400
use runfiles for pkg_tar_test to enable on Windows (#215)
This is a precursor to getting pkg_tar_test to run on Windows.
There are still problems to resolve.
commit
933fa6fAuthor: aiuto aiuto@google.com
Date: Fri Aug 7 11:22:20 2020 -0400
Convert pkg_deb tests from shell to python (#211)
commit
dbd2c4bAuthor: aiuto aiuto@google.com
Date: Fri Aug 7 11:17:32 2020 -0400
write debian control tarball in GNU_FORMAT. (#217)
This addresses part 1 of #216
commit
5985cffAuthor: Andrew Psaltis apsaltis@vmware.com
Date: Mon Aug 3 23:26:00 2020 -0400
Consolidate make_rpm.bzl and experimental/make_rpm.bzl (#179)
This change consolidates all of new features/fixes from
pkg/experimental/make_rpm.bzl into pkg/make_rpm.bzl.
Code used specifically by experimental/rpm.bzl is marked as such, and is grouped
as to be generally obvious.
Features now supported by non-experimental
pkg_rpm:rpm(8)(creation ofRPMSoutput directory)Features supported by non-experimental
pkg_rpmnot supported by experimentalpkg_rpm:SOURCE_DATE_EPOCHFixes #173
commit
4b0b9f4Author: aiuto aiuto@google.com
Date: Wed Jul 15 14:59:02 2020 -0400
Add windows to presubmit tests. (#206)
commit
dede700Author: aiuto aiuto@google.com
Date: Wed Jul 15 12:47:59 2020 -0400
Drop dependency on xzcat (#205)
We simply switch to use tarfile mode 'r:*' so that the Python runtime can pick the correct decompression.
This simplifies the code enormously.
The removed lines expressed concerns about the performance of the python3 implementation of xz decompression.
Those comments are fairly old, and were addressed in recent Python implementations as noted here: https://bugs.python.org/issue18003
commit
67d64baAuthor: aiuto aiuto@google.com
Date: Wed Jul 15 12:21:48 2020 -0400
Convert build_tar_test to python for readability and portability (#196)
commit
154479dAuthor: Elliot Murphy statik@users.noreply.github.com
Date: Thu Jul 9 16:01:27 2020 -0400
Control mode on zip inputs (#96) (#97)
commit
f00b356Author: David Schneider dschneider@tableau.com
Date: Wed Jul 1 07:28:00 2020 -0700
Allow custom archive name for pkg_tar, pkg_deb, and pkg_zip targets (#194)
commit
b5add5bAuthor: aiuto aiuto@google.com
Date: Thu May 28 10:42:00 2020 -0400
Add licenses clauses to BUILD files (#186)
commit
2977b08Author: aiuto aiuto@google.com
Date: Fri May 22 14:50:42 2020 -0400
Add a minimal WORKSPACE file to the distributon. (#182)
We extract this from the top level workspace so it is easier to keep in sync.
commit
808c192Author: andreas-0815-qwertz 57450822+andreas-0815-qwertz@users.noreply.github.com
Date: Tue May 19 18:51:17 2020 +0200
Make sequence of filenames in control.tar predictable (#120)
Replacing plain Python dict by an OrderedDict for Python versions
before 3.7, so that iteration order of "extrafiles" is determined by
insertion order. Since 3.7 iteration order of plain dict itselfhttps://github.com/bazelbuild/rules_pkg/issues/114rules_pkg/issues/114
commit
eab297cAuthor: Andrew Psaltis apsaltis@vmware.com
Date: Mon May 18 22:40:49 2020 -0400
Fix
pkg_rpmsource_date_epochattribute (#176)The existing
source_date_epochattribute forpkg_rpmis passed in asan
int, and is then appended to a string. This, naturally, fails.The
intneeds to be stringified first.Additionally, since the [SOURCE_DATE_EPOCH] value can be any valid UNIX
epoch value, account for the possibility of it being set to 0 in the
Starlark code.
[SOURCE_DATE_EPOCH]: https://reproducible-builds.org/specs/source-date-epoch/#idm55
commit
ec80248Author: Andrew Psaltis apsaltis@vmware.com
Date: Fri Apr 10 10:33:50 2020 -0400
Provide pkg_mklinks for creation of in-package symbolic links
Symbolic links are often included within packages, referring to files and
directories within and without.
This commit provides a rule,
pkg_mklinks, which allows for the creation ofarbitrary symbolic links within a package, and support within the experimental
pkg_rpmrule to emit them.buildifierwas also opportunistically applied to files in this change.commit
b20c45fv0.2.6Compare Source
New Features
Author: aiuto aiuto@google.com
Date: Mon Apr 27 15:47:20 2020 -0400
Add support to generate stardoc. (#164)
This is done in a manner so there is no new runtime dependency on bazel-skylib. The bzl_library needed as input to stardoc is only created within the distro directory, which is not part of the released package.
commit
eea3f69Merge:
0761c40b4c4a91Author: Daniel Sullivan danielalexandersullivan@gmail.com
Date: Fri Apr 24 11:02:10 2020 -0400
Merge pull request #162 from aiuto/lic
remove useless BUILD file. update readme
commit
b4c4a91Author: Tony Aiuto aiuto@google.com
Date: Thu Apr 23 23:53:56 2020 -0400
remove useless BUILD file. update readme
commit
0761c40Author: Daniel Sullivan danielalexandersullivan@gmail.com
Date: Mon Apr 20 21:15:27 2020 -0400
Preserve mtimes from input tar files in TarFileWriter output tars (#155)
commit
787f417Author: Matt Mikitka 2027417+mmikitka@users.noreply.github.com
Date: Fri Apr 17 12:31:15 2020 -0400
Changed the buildroot from BUILD to BUILDROOT (#108)
commit
ce53425Author: Andrew Psaltis apsaltis@vmware.com
Date: Wed Apr 15 18:22:22 2020 -0400
Add prototype pkgfilegroup-based RPM builder (#129)
This change provides a prototype
pkgfilegroup-based RPM builder in the form ofthe
gen_rpmrule. See #128 for more details onpkgfilegroup.The RPM generator was derived from
make_rpm.pyinpkg/and supports a numberof features over and above what's available in
pkg_rpm. As written, it, givena template like the one provided, you can construct many full-fledged RPM
packages entirely within Bazel. In most cases, the templates will only need to
be customized with advanced logic and other macros that are not settable via
bazel itself;
gen_rpmwill write much of the preamble,%descriptiontext,%installscriptlets, and%filesbased on rule-provided inputs.Documentation outside of the source files is not yet available. This was
empirically tested on RPM packages internal to VMware with positive results;
actual tests of the rules are not yet ready.
This, naturally, is incomplete, and is missing capabilities such as:
Co-authored-by: mzeren-vmw mzeren@vmware.com
Co-authored-by: klash klash@vmware.com
Co-authored-by: mzeren-vmw mzeren@vmware.com
Co-authored-by: klash klash@vmware.com
commit
79eafadAuthor: Matthias Frei matthias.frei@inf.ethz.ch
Date: Tue Apr 7 03:27:05 2020 +0200
make_deb: fix length computation for extrafiles (#144)
Analogous to the handling of the main control file.
v0.2.5Compare Source
New Features
commit
48001d1Author: aiuto aiuto@google.com
Date: Thu Mar 12 15:14:32 2020 -0400
commit
2b375a0Author: Ryan Beasley 39353016+beasleyr-vmw@users.noreply.github.com
Date: Wed Mar 11 14:49:21 2020 -0400
commit
e5919f4Author: Andrew Psaltis ampsaltis@gmail.com
Date: Fri Feb 28 01:22:37 2020 -0500
commit
7a991deAuthor: Ryan Beasley 39353016+beasleyr-vmw@users.noreply.github.com
Date: Fri Feb 28 01:02:24 2020 -0500
commit
532f285Author: zoidbergwill zoidbergwill@gmail.com
Date: Fri Feb 28 06:56:05 2020 +0100
commit
5877fa8Author: Matt Mikitka 2027417+mmikitka@users.noreply.github.com
Date: Fri Feb 28 05:49:40 2020 +0000
commit
acc1ca9Author: Trevor Hickey TrevorJamesHickey@gmail.com
Date: Mon Feb 24 09:53:55 2020 -0500
commit
2f5c981Author: andreas-0815-qwertz 57450822+andreas-0815-qwertz@users.noreply.github.com
Date: Wed Dec 4 22:32:01 2019 +0100
commit
2f09779Author: Benjamin Peterson benjamin@python.org
Date: Fri Nov 15 10:09:45 2019 -0800
commit
9192d3bAuthor: Tony Aiuto aiuto@google.com
Date: Fri Oct 4 16:33:47 2019 -0400
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.