Skip to content

Commit b83be9c

Browse files
authored
prepare for a 0.5.1 release (bazelbuild#411)
* prepare for a 0.5.1 release * use a Label to make print_rel_notes path resolution work * linty fresh
1 parent c8e31a5 commit b83be9c

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

pkg/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Release 0.5.1
2+
3+
## New features
4+
- 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)
5+
- Provide `pkg_install` for a "make install"-like experience in Bazel (#380)
6+
- Note: This feature is still in development. Read the PR for more information.
7+
- Initial support for the `pkg_filegroup` framework in `pkg_zip` (#373)
8+
9+
## Closed bugs
10+
11+
- Change the Debian example to reflect standard Debian naming. (#389)
12+
- pkg_tar(include_runfiles) now works again (#392)
13+
114
# Release 0.5.0
215

316
## New Features

pkg/private/pkg_files.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def _check_dest(content_map, dest, src, origin):
6969
# people specify the owner in one place, but another overly broad glob
7070
# brings in the file with a different owner.
7171
if old_entry and old_entry.src != src:
72+
# buildifier: disable=print
7273
print("Duplicate output path: <%s>, declared in %s and %s" % (
7374
dest,
7475
origin,

pkg/releasing/defs.bzl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ def print_rel_notes(
1010
changelog = None,
1111
mirror_host = None):
1212
tarball_name = ":%s-%s.tar.gz" % (repo, version)
13+
# Must use Label to get a path relative to the rules_pkg repository,
14+
# instead of the calling BUILD file.
15+
print_rel_notes_helper = Label("//releasing:print_rel_notes")
16+
tools = [print_rel_notes_helper]
1317
cmd = [
14-
"$(location //releasing:print_rel_notes)",
18+
"$(location %s)" % str(print_rel_notes_helper),
1519
"--org=%s" % org,
1620
"--repo=%s" % repo,
1721
"--version=%s" % version,
1822
"--tarball=$(location %s)" % tarball_name,
1923
]
20-
tools = ["//releasing:print_rel_notes"]
2124
if setup_file:
2225
cmd.append("--setup_file=%s" % setup_file)
2326
if deps_method:

pkg/tests/mappings/manifest_test_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ def assertManifestsMatch(self, expected, got):
3838
'rules_pkg/tests/mappings/' + got)
3939
with open(g_file, mode='rb') as g_fp:
4040
got = json.load(g_fp)
41-
self.assertEquals(expected, got)
41+
self.assertEqual(expected, got)

pkg/version.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
"""The version of rules_pkg."""
1515

16-
version = "0.5.0"
16+
version = "0.5.1"

0 commit comments

Comments
 (0)