summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-02update version and changelog for release (#633)upstream/0.8.0aiuto
* update version and changelog for release * fix a brittle test that depended on rules python internals. It fails depending on which Bazel you use, even though the rule is doing the right thing. Force merge so I can get the release to unblock last minute bazelcon demos.
2022-10-21Update docs to show $(var) usage and using ctx.var directly. (#621)aiuto
Add example of new ctx.var and $(var) usage in file names. Update common docs - fix since regexp - use 0.8.0 for since - remove unneeded load
2022-10-20Example of how to write tests if you vendor dependencies. (#628)aiuto
* Make sh tests portable
2022-10-20Create basic bzlmod setup for rules_pkg. (#625)aiuto
* Create basic bzlmod setup for rules_pkg. - Shows it working for one example - Has only runtime deps - rpm and git toolchains not done yet - Still not sure how to get the external repo test working - Make platforms and stardoc dependency deps.
2022-10-20remove unneeded loadTony Aiuto
2022-10-19Bazel 6.0: Fix config_setting visibility failure on bazel CI (#627)Greg
* Fix config_setting visibility failure on bazel CI See https://github.com/bazelbuild/bazel/issues/12933. Repro: `$ USE_BAZEL_VERSION=a05276fea75d47370b363125a074c38cb2badc74 bazelisk build --nobuild --incompatible_config_setting_private_default_visibility //src/main/java/...` Discovered in failing Bazel CI with `--incompatible_config_setting_private_default_visibility` flipped
2022-10-10Rough prototype of @since processing. (#617)aiuto
When we merge generated docs into the final form, convert @since(text) to emphasized (currently italic) text. This is not intended to be perfect. It is just to get the concept out there to start playing with it. Ideally, StarDoc will eventually support @since natively and we can delete this.
2022-10-10Allow $(var) substitution in filenames (#620)aiuto
* Allow $(var) substitution in filenames and include everything in ctx.var in the substitution dictionary. Fixes #20
2022-09-23Adjust tar tests to have a test case for #297 (#618)aiuto
* Adjust tar test to show #297 I tried to revert many pieces of code which should have fixed the problem, but could not reproduce 297. I'm fairly confident the root cause was eliminated a while ago.
2022-09-16Cosmetic. Improve the error messageing for duplicate files in check_dest. (#616)aiuto
* Cosmetic. Improve the error messageing on duplicate files in check_dest. * lintify
2022-09-15First cut at runfiles support in pkg_* rules (#605)aiuto
* First cut at runfiles in pkg_* rules * allow long paths in write_manifest to aid debugging
2022-09-13Do not warn if the origin paths are the same. (#615)Alexander FaxÄ
2022-09-12Create an example of the kind of link tree Node users must create (#603)aiuto
* Create an example of the kind of link tree Node users muse create
2022-09-08bump version for patch release (#614)upstream/0.7.1aiuto
2022-09-07Add a test for picking up globs in a filegroup. (#602)aiuto
No new feature, I just want the test to make sure we don't backslide on this.
2022-09-02Fix #612 (#613)aiuto
* fix #612 * check that directories get the right mode
2022-08-22Mention the new --output=files (#608)Alex Eagle
2022-07-19Properly format the deb Description field, fix format of changes file. (#600)aiuto
* Properly format the deb Description field, fix format of changes file. A combination of fixes and then tests for the behavior: - Stop text wrapping the description. The "displayer" should do the wrapping. - Create the changes "Description" field in the correct format. - Do not allow newline in single line fields. - Add leading space to continuation lines in multiline fields. https://www.debian.org/doc/debian-policy/ch-controlfields.html Fixes: #522 * do not test description on windows
2022-07-19Explicitly set the tar format to GNU. (#601)aiuto
This means that: 1. you'll get the same format no matter what version of Python you have. At Python 3.8 the default changed from GNU to PAX. 2. The default will be suitable for building Debian packages containing long file names. A followup PR may add the capability to allow PAX tar writing, but I do not know the urgency of that at this time, so that is a future feature request. Fixes #216
2022-07-13Update README.md (#599)njlr
Indicates that WORKSPACE setup can be found in the release notes.
2022-06-11Fix typo "someon" -> "someone" (#594)Joe Lencioni
2022-05-23use direct label for stamp detect (#591)aiuto
2022-05-23fix documentation to match current behvaior (#592)aiuto
2022-05-16Merge pull request #588 from aiuto/testzDaniel Sullivan
Add 'isexe' check to zip tests.
2022-05-16fix default attr testTony Aiuto
2022-05-16add an obvious args list to shut up buildifier (#586)aiuto
* Fix docstring to shut up buildifier
2022-05-16Add 'isexe' check to zip tests.Tony Aiuto
isexe checks that the file is r?xr?xr?x. That is, it just tests for read and execute, without looking at the write bits. The need is subtle. Some builds are local, and the executables often come back as 0o755, while others are remote, returning an immutable object with mode 0o555.
2022-05-12Make the zip tests print octal mode bits (#580)aiuto
2022-05-12Delete style.cssaiuto
2022-05-12another reverer (#585)aiuto
another revert
2022-05-12revert last try and try aain (#584)aiuto
another CSS change
2022-05-12Skin (#582)aiuto
* try to skin the docs * more css
2022-05-12Set theme jekyll-theme-caymanaiuto
2022-05-12try to skin the docs (#581)aiuto
2022-05-10Support for setting executable bits. (#576)aiuto
* Support for setting executable bits. - mostly fix #96 by finding executables and setting mode==755 on them This new feature can not detect all executables. Bazel does not have the right capability to make that easy. This seems to get most binaries, except shell. You will have to wrap those in pkg_files to set the mode bits.
2022-05-04Substitute package variables in `pkg_zip#package_dir`. (#577)David L. Jones
This change adds logic and tests for substituting values from `pkg_zip#package_variables` into `pkg_zip#package_dir`. This behavior largely matches `pkg_tar` (`pkg_zip` does not have an equivalent to `pkg_tar#package_dir_file`, but they are otherwise the same).
2022-04-07R7 (#575)upstream/0.7.0aiuto
* update README and docs for 0.7.0
2022-04-07update CHANGELOG for r7 (#574)aiuto
2022-04-07Make the .bzl files available as input to a bzl_library (#567)aiuto
* Make the .bzl files available as input to a bzl_library, without having to resort to the invasivness of a shadow tree of just the .bzl files without the other distributable files.
2022-04-07Only allow .deb Description to be multiline. (#573)Sven Mueller
https://github.com/bazelbuild/rules_pkg/issues/572 - Debian policy only allows the Description field to be multiline.
2022-04-06Refactor zip tests for more granularity. (#569)aiuto
* Refactor zip tests for more granularity. The single zip_test was getting too big. I want to start creating tests for more cases, and want to reuse the comparator tooling. * order methods the right way
2022-04-06Allow pkg_tar to have a package_dir == './' (#570)aiuto
We still never create a lone '.' as a directory in the archive. That is intentional There are a few parts to this: - Remove the root_directory logic from tar_writer. It was a needless feature inherited from an ancient implementation. It was not used by anything except the tests. - Stop re-normalizing paths in tar_writer. It should do what it is asked. The implication is that all the test which accounted for test data which which contained tar files with paths like './a', will now keep the './'. - Add a test to show prefix_dir == './' does work. RELNOTES: pkg_tar no longer prefixes paths with './'. You can use `package_dir` with an explicit "./" to get the old behavior. Fixes #50
2022-04-04add changelog for 0.6.0. better late tha never (#568)aiuto
2022-04-04Add default mode & owner handling to pkg_files.add_label_list. (#558)aiuto
* Move artifact tree handling to process_label_list. - Use it from pkg_zip - Move processing of files from DefaultInfo to process src - eventually we could move tree handling from process_label_list to process_src - Add more docstrings. This is a precursor to adding executable and runfiles handling to all rules.
2022-04-01Split apart archive.py to archive and tar_writer (#557)aiuto
* split apart archive.py to archive and tar_writer No behavior change. Just make the division cleaner.
2022-04-01Add tree artifact support to pkg_zip (#537)aiuto
2022-04-01move make_rpm_test to tests/rpm (#542)aiuto
2022-04-01typos (#556)aiuto
2022-03-29Move CHANGELOG.md to the top level. (#548)aiuto
Remove the obsolete and mostly ignored pkg/README.md.
2022-03-16turn off verbose loading of our private toolchains (#544)aiuto