Skip to content

1.0.0

Latest
Compare
Choose a tag to compare
@aiuto aiuto released this 03 Jun 17:55
b4ac7e3

New Features

  • Support duplicate paths in tar archives (#850)
  • pkg_rpm
    • Add support for generating debuginfo RPMs (#842)
    • Add support for "Epoch" attributes in RPMs (#858)
    • Add pkg_sub_rpm rule for RPM subpackages (#824)
    • Enable pkg_rpm and pkg_subrpm to create empty RPMs (#859)
    • Add conflicts and obsoletes to sub RPMs (#851)
    • Add %posttrans scriptlet to RPM package (#799)
    • Add support for Obsoletes tag in RPM definition (#778)

Incompatible Changes

  • Append workspace name to the runfiles directory name for pkg_files (#864)
  • Update to new stardoc so we can work with bzlmod. (#853)
    Not really incompatible by itself, but it does mean that development of
    rules_pkg itself without bzlmod is now unsupported.
  • Various fixes and improvements to pkg_rpm have probably broken someone's
    workflow. YMMV
  • Lots of bug fixes have made undefined behavior explicit. This also probably
    breaks someone's workflow. YMMV
  • Bzlmod compatibility level 2, so you may have to explicitly upgrade.

MODULE.bazel setup

bazel_dep(name = "rules_pkg", version = "1.0.0")

WORKSPACE setup

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "rules_pkg",
    urls = [
        "https://github.com/bazelbuild/rules_pkg/releases/download/1.0.0/rules_pkg-1.0.0.tar.gz",
    ],
    sha256 = "cad05f864a32799f6f9022891de91ac78f30e0fa07dc68abac92a628121b5b11",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()

Using the rules

See the source.

What's Changed (in a little more detail)

  • Provide more examples for pkg_rpm() by @kellyma2 in #823
  • fix: remove unused glob patterns by @dieortin in #825
  • Add pkg_sub_rpm rule for RPM subpackages by @kellyma2 in #824
  • lint nits by @aiuto in #831
  • Remove expand_yml.py. by @aiuto in #837
  • Add support for no parent directory inference (#832) by @eejayes in #834
  • Stop using datetime.utcfromtimestamp() by @aiuto in #838
  • update scorecard workflow to newer nodejs setup by @aiuto in #839
  • Update scorecard.yml to new checkout and analysis actions. by @aiuto in #840
  • Improve handling of sub rpms. by @aiuto in #833
  • use sys.exit() instead of exit() by @aiuto in #844
  • trying scorecard update one more time by @aiuto in #841
  • Indirect .files_to_run and .default_runfiles through DefaultInfo. by @lberki in #848
  • rpm: Add conflicts and obsoletes to sub RPMs by @kellyma2 in #851
  • Force stardoc integration test to run with bazel 7.0.0 by @aiuto in #852
  • Start removing licenses(notice) and replacing with license() by @aiuto in #742
  • Update to new stardoc so we can work with bzlmod. by @aiuto in #853
  • create empty MODULE.bazel files in examples so bazel does not complain by @aiuto in #855
  • pkg_tar: if symlink starts with ./, keep it absolute by @aiuto in #854
  • Enable pkg_rpm and pkg_subrpm to create empty RPMs by @kellyma2 in #859
  • Append the workspace name to the runfiles directory name by @EdSchouten in #856
  • Add support for generating debuginfo RPMs by @kellyma2 in #842
  • Add support for "Epoch" attributes in RPMs by @TvdW in #858
  • fix: Not all runfiles are single files by @ewianda in #860
  • Exclude release from filename when using release_file by @kellyma2 in #863
  • Append workspace name to the runfiles directory name for pkg_files by @sitaktif in #864
  • Support duplicate file paths in tar archives by @eejayes in #850
  • 1.0 release by @aiuto in #869

New Contributors

Full Changelog: 0.10.1...1.0.0