summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-02update verupstream/0.9.1upstream-0.9.xTony Aiuto
2023-03-28add MODULE.bazel (#690)upstream/0.9.0aiuto
* add MODULE.bazel
2023-03-28Bump to 0.9.0 (#687)aiuto
* v 0.9.0 * compat=1
2023-03-28swtich example to OutputGroupInfo (#689)aiuto
2023-03-28Add OutputGroupInfo for pkg_rpm rule (#684)Tomasz Wojno
* Add OutputGroupInfo for pkg_rpm rule
2023-03-15pkg_tar should not prefix tree artifacts with ./ (#681)Clint Harrison
2023-03-15exec_tools -> tools (#680)aiuto
2023-03-01Update advise about pkg_files. (#679)aiuto
Fixes: #678
2023-02-15Add verify_archive rule to do e2e tests on built archives. (#669)aiuto
We could do more, but this should be good enough to start. Fixes #644
2023-02-15Fix a potential TypeException caused by None type (#668)Qingyu Sui
2023-02-13pkg_zip: Some unicode file handling fixes and basic tests (#641)aiuto
Add primitive zip unicode filename handling tests - Just make sure we can create an archive with non-ASCII file names.
2023-02-13pkg_tar, pkg_zip: improve support for long paths on Windows (#672)Ryan Beasley
* pkg_zip: improve support for long paths on Windows This commit updates `pkg_zip` and `pkg_tar` to, when running on Windows, convert files' input paths to extended-length paths by (1) making them absolute and then (2) prepending with `\\?\`.
2023-02-09Update to rules_license 0.0.4 (#667)aiuto
- Update to a newer rules_license - update ci to prove that we can work with --incompatible_use_platforms_repo_for_constraints - do not test with no_host_transition yet
2023-02-08Genericize package manifest system and interface (#660)Andrew Psaltis
Genericize package manifest system and interface The current way that rules_pkg communicates with must packagers is using a manifest file, which is currently a JSON data structure based on a an array of arrays. While generally readable, it looks strange, as it was to reduce Bazel resource usage (JSON strings in memory). Further, our Python code is directly bound to this data structure format. However, if we want to add more or change this, it becomes cumbersome on both the Starlark and Python sides. This change alleviates concerns generally by: - Converting all manifests to a JSON "object" style, improving readability. Numerous golden tests were updated to support this. - Replace the `collections.namedtuple`-based `ManifestEntry` object with one that is a little more flexible and type-safe. - Providing a function (`read_entries_from`) that converts a file-like object into a list of `ManifestEntry`s, and replacing all JSON reading in packagers (`tar`, `zip`, `install`) and their tests with this function. Other convenience factors or things addressed: - `ManifestEntry.entry_type` is now just `ManifestEntry.type` - Bazel 6 now stringifies repository-local labels with a preceding `@`, unlike prior versions. Adapt to this in the manifest writer. Future changes will extend this interface to allow for custom attributes to be passed from `pkg_files` and friends, which, among other things, will be necessary to more generically support `pkg_rpm`. Provides groundwork for (but doesn't resolve) #385.
2023-02-07update version to 8.1 to sync with bzlmod (#665)upstream/0.8.1aiuto
2023-02-07Update MODULE.bazelaiuto
Fix version number
2023-01-11feat: expose tar manifest as an output (#643)Alex Eagle
* feat: expose tar manifest as an output This allows targets to run something like jq over the manifest contents
2023-01-11Support license attribute in pkg_deb (#651)Nils Semmelrock
Add optional attribute to add a short license description to the meta data of created debian artifacts
2023-01-04Replace the prebuilt rpmbuilt with a script (#649)aiuto
Fixes #648
2023-01-02Add support for the txz extension in pkg_tar (#653) (#654)Doug Rabson
2022-11-23Explicitly store implicit parent directories in zip files (#640)Fabian Meumertzheim
* Explicitly store implicit parent directories in zip files Tooling in the Java world (and likely elsewhere) has come to depend on all directories implicilty present as parent directories of files to be listed explicitly as a member of a ZIP file. * Address review comments
2022-11-23Remove unnecessary `to_list()` calls (#639)Fabian Meumertzheim
Avoids flattening depsets during the analysis phase by passing depsets into `ctx.actions.run`'s `input` parameter.
2022-11-23Apply package_dir to pkg_mklink (#637)aiuto
- Fix brokenness in pkg_tar - Add tests (it was working) to pkg_zip Fixes #610
2022-11-11fix doc refTony Aiuto
2022-11-11Merge remote-tracking branch 'upstream/main'Tony Aiuto
2022-11-04Update patching.mdaiuto
Tidying
2022-11-04push docs for 0.8.0 (#635)aiuto
2022-11-04push docs for 0.8.0Tony Aiuto
2022-11-04Update README.mdaiuto
Stop pointing at specific releases.
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