Commit Graph

510 Commits

Author SHA1 Message Date
aiuto 6a7585fc79
Replace the prebuilt rpmbuilt with a script (#649)
Fixes #648
2023-01-04 09:42:19 -05:00
Doug Rabson 8d8c4a8906
Add support for the txz extension in pkg_tar (#653) (#654) 2023-01-02 21:01:20 -05:00
Fabian Meumertzheim 8e65d2f3ce
Explicitly store implicit parent directories in zip files (#640)
* 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-23 22:07:53 -05:00
Fabian Meumertzheim cde117758c
Remove unnecessary `to_list()` calls (#639)
Avoids flattening depsets during the analysis phase by passing depsets
into `ctx.actions.run`'s `input` parameter.
2022-11-23 12:47:44 -05:00
aiuto ecd5112072
Apply package_dir to pkg_mklink (#637)
- Fix brokenness in pkg_tar
- Add tests (it was working) to pkg_zip

Fixes #610
2022-11-23 12:45:25 -05:00
Tony Aiuto daa231c2de fix doc ref 2022-11-11 10:25:36 -05:00
Tony Aiuto fe9b42b5e1 Merge remote-tracking branch 'upstream/main' 2022-11-11 10:24:04 -05:00
aiuto bcc76c8818
Update patching.md
Tidying
2022-11-04 15:56:21 -04:00
aiuto d7b20dacb0
push docs for 0.8.0 (#635) 2022-11-04 15:40:05 -04:00
Tony Aiuto 0f15d5b4cd push docs for 0.8.0 2022-11-04 15:36:58 -04:00
aiuto e5d2ca0937
Update README.md
Stop pointing at specific releases.
2022-11-04 15:32:41 -04:00
aiuto 29d79cfa6d
update version and changelog for release (#633)
* 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-11-02 23:24:39 -04:00
aiuto 914b0e5ef8
Update docs to show $(var) usage and using ctx.var directly. (#621)
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-21 10:01:05 -04:00
aiuto de81967b2f
Example of how to write tests if you vendor dependencies. (#628)
* Make sh tests portable
2022-10-20 10:47:54 -04:00
aiuto 0cac0ab710
Create basic bzlmod setup for rules_pkg. (#625)
* 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-20 10:46:25 -04:00
Tony Aiuto 383e9a13db remove unneeded load 2022-10-20 09:49:49 -04:00
Greg 7693abc8ca
Bazel 6.0: Fix config_setting visibility failure on bazel CI (#627)
* 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-19 20:46:30 -04:00
aiuto 4891d9fe6c
Rough prototype of @since processing. (#617)
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-10 09:32:30 -04:00
aiuto 30bf21dffe
Allow $(var) substitution in filenames (#620)
* Allow $(var) substitution in filenames and include everything in ctx.var in the substitution dictionary.

Fixes #20
2022-10-10 09:13:23 -04:00
aiuto 63eaef030c
Adjust tar tests to have a test case for #297 (#618)
* 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-23 13:07:08 -04:00
aiuto 4655608655
Cosmetic. Improve the error messageing for duplicate files in check_dest. (#616)
* Cosmetic. Improve the error messageing on duplicate files in check_dest.

* lintify
2022-09-16 12:34:42 -04:00
aiuto 21888798fd
First cut at runfiles support in pkg_* rules (#605)
* First cut at runfiles in pkg_* rules
* allow long paths in write_manifest to aid debugging
2022-09-15 11:06:34 -04:00
Alexander Faxå 0f128a2579
Do not warn if the origin paths are the same. (#615) 2022-09-13 11:40:17 -04:00
aiuto 46eabd36cf
Create an example of the kind of link tree Node users must create (#603)
* Create an example of the kind of link tree Node users muse create
2022-09-12 23:58:39 -04:00
aiuto 60dbd92d1c
bump version for patch release (#614) 2022-09-08 14:52:02 -04:00
aiuto 0cbfa846de
Add a test for picking up globs in a filegroup. (#602)
No new feature, I just want the test to make sure we don't backslide on this.
2022-09-07 13:08:31 -04:00
aiuto 5b8a851cf7
Fix #612 (#613)
* fix #612
* check that directories get the right mode
2022-09-02 15:55:35 -04:00
Alex Eagle 6fe8c2ed25
Mention the new --output=files (#608) 2022-08-22 12:18:01 -04:00
aiuto 7f7bcf9c93
Properly format the deb Description field, fix format of changes file. (#600)
* 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-19 12:25:40 -04:00
aiuto ad67925abf
Explicitly set the tar format to GNU. (#601)
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-19 10:34:35 -04:00
njlr 157dcfddac
Update README.md (#599)
Indicates that WORKSPACE setup can be found in the release notes.
2022-07-13 23:11:01 -04:00
Joe Lencioni 93a7c6f16b
Fix typo "someon" -> "someone" (#594) 2022-06-11 10:57:59 -04:00
aiuto 3ab5744621
use direct label for stamp detect (#591) 2022-05-23 13:05:23 -04:00
aiuto 7135c9c767
fix documentation to match current behvaior (#592) 2022-05-23 13:01:27 -04:00
Daniel Sullivan ed8c6b2b6a
Merge pull request #588 from aiuto/testz
Add 'isexe' check to zip tests.
2022-05-16 14:39:52 -04:00
Tony Aiuto 93788b6cd7 fix default attr test 2022-05-16 12:37:04 -04:00
aiuto bf2087cbb1
add an obvious args list to shut up buildifier (#586)
* Fix docstring to shut up buildifier
2022-05-16 12:28:59 -04:00
Tony Aiuto c0b9ad27ee Add 'isexe' check to zip tests.
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-16 11:20:30 -04:00
aiuto bc53cf254b
Make the zip tests print octal mode bits (#580) 2022-05-12 20:42:19 -04:00
aiuto 3b43ed4977
Delete style.css 2022-05-12 17:17:33 -04:00
aiuto f08a23c20c
another reverer (#585)
another revert
2022-05-12 17:16:14 -04:00
aiuto 2853c11150
revert last try and try aain (#584)
another CSS change
2022-05-12 17:09:02 -04:00
aiuto 6afea17ad3
Skin (#582)
* try to skin the docs

* more css
2022-05-12 17:01:21 -04:00
aiuto 52e669ddb1
Set theme jekyll-theme-cayman 2022-05-12 16:45:51 -04:00
aiuto b3c9a8c190
try to skin the docs (#581) 2022-05-12 15:33:48 -04:00
aiuto ea8c75a15c
Support for setting executable bits. (#576)
* 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-10 13:40:30 -04:00
David L. Jones 00c8f6f541
Substitute package variables in `pkg_zip#package_dir`. (#577)
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-05-04 10:20:16 -04:00
aiuto 4f8f6ed027
R7 (#575)
* update README and docs for 0.7.0
2022-04-07 16:13:23 -04:00
aiuto 8c4bcaa252
update CHANGELOG for r7 (#574) 2022-04-07 16:00:03 -04:00
aiuto 76f5651ed9
Make the .bzl files available as input to a bzl_library (#567)
* 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-07 12:12:14 -04:00