Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency rules_pkg to v0.10.1 #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Mar 18, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
rules_pkg http_archive minor 0.4.0 -> 0.10.1

Release Notes

bazelbuild/rules_pkg (rules_pkg)

v0.10.1

Compare 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.0

Compare Source

New Features

  • Allow $(var) substitution in filenames (#​620)
  • Rough prototype of @​since processing. (#​617)
  • First cut at runfiles support in pkg_* rules (#​605)
  • Allow substitution of user-defined variables in RPM preamble (#​787)
  • Add %posttrans scriptlet to RPM package (#​799)
  • Allow additional RPM macro defines (#​794)
  • Bring tar runfiles up to feature parity with pkg_files.runfiles. (#​754)
  • Add support for Obsoletes tag in RPM definition (#​778)
  • pkg_deb: allow data.tar.zst (#​761)
  • Add support for failing on file conflicts. (#​683)
  • Make pkg_zip compression configurable (#​737)
  • Append changelog to RPM spec file (#​726)
  • Add basic include_runfiles to pkg_files. (#​724)
  • Add changelog attribute to pkg_deb (#​725)
  • Add support for setting uid/gid from pkg_attributes (#​671)

Bug Fixes

  • Explicitly set the FILE bit in zip external attributes. (#​802)
  • Explicitly set %{_builddir} macro (#​792)
  • Only inject pre and post scriptlets when provided (#​788)
  • Don't load cc toolchain from rules_cc (#​779)
  • doc: Fixup external manual references (#​777)
  • Get bzlmod working in CI (#​766)
  • use runfiles from rules_python (#​768)
  • When pkg_tar.prefix_dir == base of symlink path, don't double-dip. (#​749)
  • add imports to fix bazel --noexperimental_python_import_all_repositories flag (#​630)
  • Align pkg_rpm returned files with other rules (#​692)
  • fix(pkg_tar): properly normalize paths for empty files (#​760)
  • Document that package_dir also uses package_variables (#​747)
  • Fix handling paths with whitepsaces (#​733)
  • Fix python 3.6, doesn't support compresslevel
  • Use Gzip compress level 6 (#​720)
  • write debian Date field in UTC rather than local time (#​712)
  • [pkg_deb] Fix multiline fields in changes file (#​691)

**Breaking Changes

  • Remove PackageArtifactsInfo. (#​752)

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.1

Compare Source

Re-release of 0.9.0 to correct a mismatch of artifacts between github.com and mirro.bazel.build

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.9.1/rules_pkg-0.9.1.tar.gz",
    ],
    sha256 = "8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8",
)
load("@​rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the docs

v0.9.0

Compare Source

New Features

  • verify_archive rule to do e2e tests on built archives. (#​644)

Incompatible Changes

  • Genericize package manifest system and interface (#​660)

** Bug Fixes **

  • pkg_tar should not prefix tree artifacts with ./ (#​681)
  • pkg_tar, pkg_zip: improve support for long paths on Windows (#​672)

Thanks to

Tomasz Wojno, Clint Harrison, Qingyu Sui, Ryan Beasley.

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.9.0/rules_pkg-0.9.0.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.9.0/rules_pkg-0.9.0.tar.gz",
    ],
    sha256 = "335632735e625d408870ec3e361e192e99ef7462315caa887417f4d88c4c8fb8",
)
load("@​rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.

v0.8.1

Compare Source

New Features

  • Expose tar manifest as an output (#​643)
  • Support license attribute in pkg_deb (#​651)
  • Add support for the txz extension in pkg_tar (#​653) (#​654)

Fixes

  • Explicitly store implicit parent directories in zip files (#​640)
  • Remove unnecessary to_list() calls (#​639)
  • Apply package_dir to pkg_mklink (#​637)

Thanks to
Alex Eagle, Nils Semmelrock, Doug Rabson, Fabian Meumertzheim

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.8.1/rules_pkg-0.8.1.tar.gz",
    ],
    sha256 = "8c20f74bca25d2d442b327ae26768c02cf3c99e93fad0381f32be9aab1967675",
)
load("@​rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the documentation

v0.8.0

Compare Source

New Features

  • Allow $(var) substitution in filenames (#​620)
    • Allow $(var) substitution in filenames and include everything in ctx.var in the substitution dictionary.
      Fixes #​20
  • Basic bzlmod setup
    • CI runs for both traditional and bzlmod
    • Shows it working for one example
    • Has only runtime deps
    • rpm and git toolchains not done yet
  • Rough prototype of @​since processing. (#​617)
  • First cut at runfiles support in pkg_* rules (#​605)

Bug Fixes

  • Fix config_setting visibility failure when using --incompatible_config_setting_private_default_visibility
  • Cosmetic. Improve the error messageing for duplicate files in check_dest. (#​616)
  • Adjust tar tests to have a test case for #​297 (#​618)
  • Do not warn if the origin paths are the same. (#​615)

v0.7.1

Compare Source

WORKSPACE setup

load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.1/rules_pkg-0.7.1.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.7.1/rules_pkg-0.7.1.tar.gz",
    ],
    sha256 = "451e08a4d78988c06fa3f9306ec813b836b1d076d0f055595444ba4ff22b867f",
)
load("@​rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

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.0

Compare Source

New Features

  • Make the .bzl files available as input to a bzl_library (#​567)
  • Allow pkg_files.strip_prefix to work on tree artifact without having to use renames.
  • Add @​rules_license style license declarations (#​508)
  • Better looking documentation
  • Add artifact_name to print_relnotes (#​541)
  • pkg_{deb,rpm,tar,zip} are now available via individual .bzl files, so you
    only need to load what you actually need.
  • Add tree artifact support to pkg_zip (#​537)
  • symlink support to pkg_zip (#​499)

Potentially breaking changes

  • Get rid of the long deprecated archive_name and extension from pkg_zip. (#​552)
    • Make 'out' work in a reasonable way. Fixes #​414
    • Partial fix for #​284

Bug fixes:

Contributors

Thanks to: Andrew Psaltis, Gunnar Wagenknecht, and Sven Mueller
for contributions to this release.

v0.6.0

Compare Source

This revision requires Bazel 4.x or greater

Visible changes

  • Enable nested pkg_filegroups (#​420)
  • Restore include_runfiles support for pkg_tar. (#​398)
  • Change the Debian example to reflect standard Debian naming. (#​389)
  • More support for TreeArtifacts in PackageFilesInfo (#​421)
  • Improved docs
  • eliminate need to load all rules if you only need one.

Bug fixes:

  • [pkg_deb] fix computation of changes file file name (#​418)
  • Fix use of name parameter to pkg_tar (#​469)
  • Fix missing %dir RPM filetag when PackageDirsInfo is provided (#​473)
  • pkg_rpm: Don't have source_date_epoch apply by default; test modularity cleanup (#​487)

Internal changes

  • Remove legacy command line options to tar builder. Everything is now in the manifest.
  • Unify template files names as .tpl (#​383)
  • Modularize manifest python code (#​384)
  • many code refactorings to make tests more isolated and allow more ownership by domain

Contributors

Thanks to: Andrew Psaltis, Grant Monroe, Gunnar Wagenknecht, Ken Conley, Motiejus Jakštys, and Ryan Beasley
for contributions to this release.

v0.5.1

Compare Source

New features

  • Add 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)
  • Provide pkg_install for a "make install"-like experience in Bazel (#​380)
    • Note: This feature is still in development. Read the PR for more information.
  • Initial support for the pkg_filegroup framework in pkg_zip (#​373)

Closed bugs

  • Change the Debian example to reflect standard Debian naming. (#​389)
  • pkg_tar(include_runfiles) now works again (#​392)

v0.5.0

Compare Source

New Features

  • Initial support for pkg_* rules as srcs of pkg_tar (#​367)
    Adds support for pkg_mklink, pkg_mkdirs, pkg_files and pkg_filegroup to pkg_tar.
    • Provide filter_directory for basic TreeArtifact processing (#​331)
  • stamp support to pkg_tar (#​288) and pkg_zip (#​365)
    Done in the style of cc_binary
    • stamp attribute (1=stamp, 0=no stamp, -1=follow --stamp)
    • Use existing --stamp command line option
  • Significant pkg_rpm changes
    • Graduate experimental pkg_rpm to mainline (#​338)
    • Deprecate pkg/rpm.bzl and move it to pkg/legacy/rpm.bzl (#​337)
    • Make find_system_rpmbuild repo rule depend on PATH (#​348)
    • Support SOURCE_DATE_EPOCH in rpm.bzl; enable file clamping in make_rpm.py (#​322)
    • Allow runfiles to be used alongside the rpmbuild toolchain (#​329)
  • pkg_tar support for custom compression program (#​320)
  • Support long file names in pkg_tar by ignoring 'path' PAX header. (#​250) (#​326)
  • (experimental) Capability to gather the git commit log since the last release (#​357)
    This needs user feedback to discover the most pleasing mode. For this
    release, I did blaze build distro:changelog.txt then took the result to
    update this file (CHANGELOG.md). I would like to do better than that. Thoughts
    from users are welcome.

Internal changes

  • Add a rule to make artifacts that mimic binaries (#​366)
  • Stop importing single methods from modules. Use the entire thing. (#​361)
  • Fix some things that Google's strident buildifier warns about. (#​363)
  • Enable more tests on windows (#​364)
    • Fix most mapping tests to work on windows. (#​350)
  • refactor path.bzl and improve testing (#​359)
  • Fix and refactor pkg_tar compression logic (#​358) (#​345)
  • Move build_tar, build_zip and helpers to //private (#​353)

Incompatible changes

  • Remove the capability to have the Debian .changes file have a different (#​342)

Contributors

This release contains contributions and fixes from aiuto, Alex Eagle,
Andrew Psaltis, Greg Bowyer, katre, Michael Hackner, and Rafael Marinheiro


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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency rules_pkg to v0.8.1 Update dependency rules_pkg to v0.9.0 Mar 30, 2023
@renovate renovate bot force-pushed the renovate/rules_pkg-0.x branch from a597a3c to 20dbdd2 Compare March 30, 2023 03:37
@renovate renovate bot changed the title Update dependency rules_pkg to v0.9.0 Update dependency rules_pkg to v0.9.1 May 29, 2023
@renovate renovate bot force-pushed the renovate/rules_pkg-0.x branch from 20dbdd2 to fd4b064 Compare May 29, 2023 21:45
@renovate renovate bot force-pushed the renovate/rules_pkg-0.x branch from fd4b064 to 9dcd9b0 Compare November 6, 2023 11:01
@renovate renovate bot changed the title Update dependency rules_pkg to v0.9.1 Update dependency rules_pkg to v0.10.0 Jan 11, 2024
@renovate renovate bot force-pushed the renovate/rules_pkg-0.x branch from 9dcd9b0 to 78ad1a5 Compare January 11, 2024 05:49
@renovate renovate bot force-pushed the renovate/rules_pkg-0.x branch from 78ad1a5 to d257b53 Compare February 15, 2024 05:31
@renovate renovate bot changed the title Update dependency rules_pkg to v0.10.0 Update dependency rules_pkg to v0.10.1 Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants