Commit Graph

48 Commits

Author SHA1 Message Date
aiuto 6a44f01087
Revert compatibility_level back to 1 so we can push to BCR. (#877)
* Revert compatibility_level back to 1 so we can push to BCR.

See https://github.com/bazelbuild/bazel-central-registry/issues/2232
for discussion.

* update version#
2024-07-09 14:22:24 -04:00
aiuto b4ac7e3197
1.0 release (#869) 2024-06-03 13:12:43 -04:00
Erik Stringwell 2247f5d88d
Support duplicate paths in tar archives (#850)
Duplicate path entries are made possible within tar archives as
discussed in feature request #849. This includes an interaction with
create parents, where the only logical scenario which would require
inference of a parent directory is when one does not already exist.
This is because allowance of duplicates is only useful when explicit
paths are declared.

RELNOTES: Duplicate path entries supported within tar archives
2024-05-29 16:51:36 -04:00
Erik Stringwell a0eb69a1f3
Add support for no parent directory inference (#832) (#834)
Add feature as described in #832.

RELNOTES: Automatic creation of parent directory specifications for
paths with depth can be prevented in `pkg_tar` archives by setting `create_parents=False`.
2024-03-21 10:04:19 -04:00
tonyaiuto d7ff3e6e52
Update changelog and version numbers. (#819)
* update changelog

* freshdocs
2024-02-08 17:46:43 -05:00
aiuto 39ab08d680
doc and changelog update to go with 0.10.0 (#809)
* add docs for 10
2024-01-10 16:07:09 -05:00
Tony Aiuto 3a1070dee9 update docs 2023-12-22 09:14:29 -05:00
aiuto 1788b97744
Bring tar runfiles up to feature parity with pkg_files.runfiles. (#754)
* Bring tar runfiles up to feature parity with pkg_files.runfiles.

The bulk of the change is to have pkg_tar use pkg_files%add_label_list to process `srcs`.  That brings it in conformance with pkg_files and pkg_zip. This changes the behavior of runfiles to be useful, but it is a breaking
change.

Fixes: #153
Fixes: #579

Other bits:
- do not fail verify_archive_test without a min_size or max_size
- change `data` file in the sample executable from BUILD to foo.cc so
  that it is easier to disambiguate from other files.
- fix bug in runfiles support where files were not added to file_deps list.
- fix bug in runfiles support where the runfiles base was not computed
  correctly.
- some buildifier fixes to make the linters happy.
2023-11-28 11:34:24 -05:00
aiuto 006af3e393
When pkg_tar.prefix_dir == base of symlink path, don't double-dip. (#749)
* Correct for case where tar has prefix_dir and files/symlinks, but the
user has already mapped the prefix_dir into those paths. Under the old
behavior, prefix_dir was (incorrectly) not added to symlinks, so some
users made the desired prefix part of the link.  Protecting them
against the double inclusion of the prefix is probably the least
surprising behavior.

Add tests for this, which required improving verify_archive_test.

* make buildifier happy

* do not run the symlink test on windows

* huh? why are symlinks in a tree failing on CI?
2023-10-16 16:10:06 -04:00
Florian Scheibner 19ef5a6d5e
Document that package_dir also uses package_variables (#747)
* Document that package_dir also uses package_variables

The pkg_zip and pkg_tar rule already support variable substitution in their
package_dir parameter, it was only documented for package_variables so far.

* Make Common Attributes linkable
2023-09-05 15:06:12 -04:00
aiuto e91fe75c8c
add docs for 0.9 (#740) 2023-08-30 06:20:49 -07:00
Tony Aiuto 18ae1ccde6 update docs 2023-08-21 23:36:34 -04:00
Jean-Hadrien Chabran 253231471d
docs: add a note in pkg_tar#strip_prefix docs (v.0.8.0) about flattening (#699)
* docs: add a note in pkg_tar#strip_prefix about flattening

* More gramatical description

* make the message more accurate

---------

Co-authored-by: aiuto <aiuto@google.com>
2023-06-05 17:32:11 -04:00
Austin Schuh e7a1ba187c
Add support for setting uid/gid from pkg_attributes (#671)
This enables the user to produce identical tarballs to fix
https://github.com/bazelbuild/rules_pkg/issues/670

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
Co-authored-by: aiuto <aiuto@google.com>
2023-05-01 13:36:09 -04:00
aiuto 27719a86f1
Update advise about pkg_files. (#679)
Fixes: #678
2023-03-01 14:49:04 -05:00
Nils Semmelrock 52ed3efd76
Support license attribute in pkg_deb (#651)
Add optional attribute to add a short license description to the meta data of created debian artifacts
2023-01-11 11:34:12 -05:00
Tony Aiuto daa231c2de fix doc ref 2022-11-11 10:25:36 -05:00
Tony Aiuto 0f15d5b4cd push docs for 0.8.0 2022-11-04 15:36:58 -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 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 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 4f8f6ed027
R7 (#575)
* update README and docs for 0.7.0
2022-04-07 16:13:23 -04:00
aiuto c74ef150b1
Update docs/latest.md to current. (#560)
Will force push.
2022-03-11 10:23:15 -05:00
aiuto b710cacf88
Get rid of the long deprecated archive_name and extension from pkg_zip. (#552)
- Make 'out' work in a reasonable way. Fixes #414
- Partial fix for #284
2022-03-07 13:29:12 -05:00
aiuto a8638d628c
Try to make the docs a little better. (#524)
* Try to make the docs a little better.
- Fix stardoc adding <p align=center> in markdown tables.
- Add rough capability to handle macros that wrap a rule.

The wrapping technique is:
- In the wrapping macro, use the docstring  @wraps(some_rule)
- Then we don't emit the docs for the wrapper
- In the docs for some_rule, replace the string "some_rule" with the
  name of the wrapper macro.

It is a first attempt to make things better.  It is crude, but it
mostly works.It is a first attempt to make things better. It is crude, but it mostly works. If Stardoc ever adds this capability [(feature request)[https://github.com/bazelbuild/stardoc/issues/120] we can move to that.
2022-02-16 10:39:01 -05:00
aiuto 6135142861
Make the docs table of contents more useful by including the .bzl files (#530)
where the rules are defined. Without that, you just have to know.

It would be nice if stardoc had support for adding the bzl path out of the box.
https://github.com/bazelbuild/stardoc/issues/120
2022-02-15 19:58:14 -05:00
aiuto 7f55dcc759
move the rpmbuild toolchain definition to //toolchains/rpm. (#514)
* move the rpmbuild toolchain to toolchains/rpm
* update CODEOWNERS
2022-02-15 19:55:59 -05:00
aiuto cce90a09ce
split pkg_tar code out of //pkg:pkg.bzl (#528) 2022-02-08 19:23:56 -05:00
aiuto 62c402c2cd
Move the designated place for pkg_tar to be //pkg:tar.bzl. (#526)
* Move the designated place for pkg_tar to be //pkg:tar.bzl.

This does not move pkg_tar from pkg.bzl to pkg/private/tar.bzl yet.
I am waiting on that for other PRs to pkg.bzl to be merged.  This PR
moves the examples and tests to the desired style now rather than later.

* update docs snapshot because //pkg/private/tar:build_tar moved
2022-02-08 11:05:27 -05:00
aiuto e658d70640
Fix some typos (#516)
* fix some typos
2022-02-03 17:23:56 -05:00
aiuto 62b1443f4f
Robots. (#512)
robots.txt
2022-01-29 00:51:54 -05:00
aiuto e173e40a8c
Add docs baseline for 0.6.0 (#509)
* Add 0.6.0 doc tree
* fix <li>s in stamp docs
* fix the <li> in tables with a stardoc bug workaround.
* remove obsolete reference.md that was imbedded in the wrong place
2022-01-28 15:31:58 -05:00
aiuto 4fa18d1b9c
Rename pkg_mklink.src to target (#496)
* rename mklinks src to target
* allow src as an alternate
* rename dest to link_name
* do docs
2022-01-20 18:19:08 -05:00
aiuto 5a976bc14f
Update stardoc (#495)
* update stardoc and update lastest ref
2022-01-10 21:05:45 -05:00
aiuto bc5cf69318
fix toc in doc generation (#494)
Fix doc toc and republish head snapshot
2021-12-22 00:03:08 -05:00
aiuto 002daac66e
Improved doc generation: Produce a single reference doc. (#474)
* Improved doc generation: Produce a single reference doc.

- moves doc generation out of distro into a separate doc_build tree
- creates a single reference.md from the common attributes section
  plus the individual page.

Future plans
- post transform the .html to add links between sections
- post transform the .html to add external links to Bazel docs.
- add procedures to cut doc releases alongside distribution releases
2021-12-07 01:15:58 -05:00
aiuto 036362cd91
Move pkg_deb documentation from .md file to .bzl (#445) 2021-11-04 15:36:24 -04:00
aiuto 8e5f15c14e
Add version numbers to title pages of versioned docs (#409)
* snarf docs

* trying to figure out custom headers

* drop head.html

* more docs

* typo
2021-08-16 20:37:25 -04:00
aiuto ae9d09cd9f
trying to figure out docs custom headers (#408)
* snarf docs

* trying to figure out custom headers
2021-08-12 15:27:46 -04:00
aiuto 621c3a0cda
snarf docs (#407) 2021-08-12 12:51:24 -04:00
aiuto aee14fadce
Tweak github pages experiment (#406)
* create placeholder /docs to test github pages

* point to older references for 0.[45].0
2021-08-12 12:27:40 -04:00
aiuto f487f1ac94 Set theme jekyll-theme-slate 2021-08-12 11:50:58 -04:00
aiuto ce9e8fb75a
create placeholder /docs to test github pages (#405) 2021-08-12 11:47:30 -04:00