Commit Graph

645 Commits

Author SHA1 Message Date
Derek Cormier 20480444e6
chore: run CI on 2.x branch (#581) 2023-10-05 12:35:31 -07:00
Derek Cormier 46a16e500c
chore: remove expand_template re-export (#580) 2023-10-05 12:33:13 -07:00
Alex Eagle 652773d5fa
fix: register tar toolchain for bzlmod users (#574) 2023-10-04 10:43:09 -07:00
Alex Eagle a283a8216d feat: add a tar toolchain (#468)
* feat: add a BSD tar toolchain

@thesayyn discovered that it has a feature which should make it a drop-in replacement for pkg_tar
including fine-grained file permissions and symlinks:
https://man.freebsd.org/cgi/man.cgi?mtree(8)

* show example of mtree usage

* feat: introduce tar rule

* cleanup and get test passing

* more cleanup

* chore: add support for compress flags

* chore: add docs

* chore: add docs

* feat: implement linux bsdtar toolchain (#566)

* chore: improve target naming

* WIP: args

* feat: generate mtree spec

Also allow arbitrary args

* refactor: mtree is required

* refactor: style nits

* fix: support mix of source and generated artifacts

* feat: demonstrate strip_prefix

* chore: regen docs

* fix: make host toolchain a fallback toolchain

* fix: include libarchive13.so when installing BSD tar

* chore: buildifier

* fix: aarch64 cpu constraint

* fix(ci): include libarchive13.so when running tar

* chore: add libnettle

* refactor: inputs mutated less

* refactor: remove unneeded substitution arg

* refactor: don't advertise unsupported modes

* fix: hack enough to make it run on my machine

* chore: dynamic libraries included in sh_binary under toolchain

* make sh_binary work

* refactor: drop arm64 for now

* fix toolchain

* fix test

* chore: improve test naming scheme

---------

Co-authored-by: Sahin Yort <thesayyn@gmail.com>
2023-10-03 13:50:55 -07:00
Derek Cormier 174bb9425d feat: support jq 1.7 toolchain (#520) 2023-10-03 13:50:55 -07:00
Greg Magolan 7f951a7a0c
chore: bump to latest version of Aspect Workflows starter image (#571) 2023-10-03 10:21:01 -07:00
renovate[bot] e8c60a740d
chore(deps): update dependency buildifier_prebuilt to v6.3.3 (#489)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-29 14:53:05 -07:00
Alex Eagle e00ea2b977
chore: update pre-commit buildifier (#563)
It needs to match the one CI runs in
https://github.com/aspect-build/bazel-lib/actions/runs/6357283303/job/17268197322
2023-09-29 14:42:33 -07:00
Alex Eagle 063e88cde3
fix(ci): don't run patch on windows (#562) 2023-09-29 14:21:49 -07:00
Greg Magolan bcb10f8154
feat: add undeclared output mode to expand_template (#561) 2023-09-29 11:30:02 -07:00
Greg Magolan 1d816e011b
feat: add assert_directory_contains test to testing.bzl (#560) 2023-09-29 09:53:00 -07:00
Greg Magolan e8bbdbfda6
chore: update to Aspect CLI 5.7.2 (#559) 2023-09-28 18:48:03 -07:00
Greg Magolan 5ebb6906dc
chore: upgrade to Aspect Workflows 5.8.0-rc11 (#558) 2023-09-28 18:13:55 -07:00
Greg Magolan c8b36d08d0
chore: upgrade to Aspect Workflows 5.8.0-rc9 (#557) 2023-09-27 17:19:33 -07:00
Alex Eagle bc54655e71
ci: add assertion that bcr patches apply (#556) 2023-09-27 10:26:38 -07:00
Alex Eagle 9174085429
fix(ci): always build with -c opt (#555)
We no longer stamp our version anywhere since the Go tools must have deterministic hashes, so remove the --stamp setup
2023-09-27 09:56:35 -07:00
Alex Eagle 14d6c50fc5
chore: rules_go is a non-dev dep at HEAD (#554)
This ensures if you get a SHA of bazel-lib you build the tools/ from head
2023-09-27 09:01:51 -07:00
Aaron Son a4e997de1f
feat: add `propagate_common_{,test_,binary_}rule_attributes` to lib/utils. (#553)
* feat: add `propagate_common_{,test_,binary_}rule_attributes` to lib/utils.

* lib/private/utils: PR feedback: extract COMMON_BINARY_RULE_ATTRIBUTES and COMMON_TEST_RULE_ATTRIBUTES to global constants.

* lib/private/utils: PR feedback: remove default value for attrs param to propagate_common_*rule_attributes

* fix: lib/private/utils: buildifier.
2023-09-26 14:29:42 -07:00
Greg Magolan 32488f02ce
chore: bump GKE machine type to e2-standard-2 (#551) 2023-09-26 09:36:37 -07:00
Sahin Yort 5ca9c8ff25
fix: macos sed (#550) 2023-09-25 13:13:49 -07:00
Greg Magolan 7908e53f43
chore: set --remote_download_minimal and --nobuild_runfile_links for all Workflows tasks (#549) 2023-09-25 09:36:18 -07:00
Marc Redemske b29be5ff64
docs: add minimum pre-commit version (#544)
ensure developers have the right version to run all used hooks
2023-09-24 17:17:49 -07:00
Sahin Yort ef364b54b4
refactor: consume tools from source if unstamped (#543) 2023-09-24 15:06:10 -07:00
Greg Magolan b60dc04ed3
chore: upgrade to Aspect Workflows 5.8.0-rc8 (#546) 2023-09-23 09:52:00 -07:00
Sahin Yort e3015cd8fa
refactor: cleanup e2e (#542) 2023-09-22 13:04:09 -07:00
Matt Mackay 8fa2127518
fix: allow for BUILD files in outputs of write_source_file (#540) 2023-09-21 19:50:04 -04:00
Sahin Yort 719b8f33b0
refactor: add ability to test against tools from source (#532) 2023-09-21 15:12:46 -07:00
Sahin Yort 04e1c3c473
refactor: remove stamp information from tools (#537) 2023-09-21 14:55:57 -07:00
Matt Mackay 62394fbb68
fix: lookup source files from execroot when running diff_test on RBE (#531) 2023-09-21 13:27:08 -07:00
Douglas Parker 077e4b034b
feat: update `copy_to_directory` tool to accept the name of its workspace and automatically include files from it (#488)
Refs #359.

This allows `copy_to_directory` to be run in an external workspace and include files from that workspace automatically once the `copy_to_directory` rule is updated. The rule update needs to be separated from the tool update because the tool is pre-built and vendored rather than built at HEAD.
2023-09-21 11:34:57 -07:00
Marc Redemske 45986f000d
feat: add list utils (#512)
* feat: add list utils

* chore: add docs for lists

* fixes accoding to review

---------

Co-authored-by: Alex Eagle <alex@aspect.dev>
2023-09-21 10:12:47 -07:00
Alex Eagle 882bc95615
feat: expand_template allows inline template content (#533)
Co-authored-by: thesayyn <thesayyn@gmail.com>
2023-09-20 18:32:05 -07:00
Alex Eagle b7a3ea534e
chore: fix red ci (#534) 2023-09-20 17:39:22 -07:00
Sahin Yort 270a1bd9e3
fix: check in generated bazelrcs (#535) 2023-09-20 15:57:29 -07:00
Greg Magolan 7983da04e4
chore: upgrade to Aspect Workflows 5.8.0-rc6 (#530) 2023-09-19 13:39:34 -07:00
Ted Kaplan fc3c3181f3
docs: Add --incompatible_disallow_empty_glob to correctness.bazelrc (#524) 2023-09-18 19:58:27 -07:00
renovate[bot] 89d8605502
chore(deps): update actions/checkout action to v4 (#523)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-15 18:18:05 -07:00
Greg Magolan 56338348ea chore: upgrade to Aspect Workflows 5.8.0-rc4 (#525) 2023-09-14 01:59:12 -07:00
renovate[bot] 62fc770f25 chore(deps): update dependency platforms to v0.0.7 2023-09-13 17:56:37 -07:00
renovate[bot] b2316000f9 fix(deps): update golang.org/x/exp digest to 9212866 2023-09-13 17:50:11 -07:00
renovate[bot] abbd0e625e chore(deps): update dependency bazel_gazelle to v0.33.0 2023-09-10 19:50:13 -07:00
Greg Magolan 06cb7f0f78
chore: upgrade to Aspect Workflows 5.8.0rc3 (#521) 2023-09-09 15:40:14 -07:00
Alex Eagle d2203e9020
chore: pick up new expand_template go binary (#518)
Also fix an error that was getting reported in our release pipeline
2023-09-06 16:47:15 -07:00
Alex Eagle 8703eb9479
fix(expand_template): correct output permissions (#516)
We used hexadecimal where we meant to use octal.
0x666 in binary is 11001100110 but 0666 is 110110110 (9 digits as
expected)
so this was producing an output like
---xr--r-- 1 108 114 206 Sep  6 20:55 bazel-out/k8-opt/bin/stamped_labels.txt
2023-09-06 16:20:27 -07:00
Alex Eagle 2c11bf1e1b
chore: revert fancy release automation (#517)
It doesn't work properly with Publish To BCR app parsing of the module file.
2023-09-06 16:18:53 -07:00
Alex Eagle cd4293c140
refactor: invert the conditional for setting version (#515)
This evaluates the same way, but tricks the parser in Publish-to-BCR app into skipping any replacements
2023-09-06 15:50:37 -07:00
Alex Eagle f7a02f0c8e
fix: strip 'v' prefix from tag when setting module version (#514) 2023-09-06 08:11:13 -07:00
Alex Eagle f1e84078a6
chore: pull in https://github.com/bazel-contrib/rules-template/pull/93 (#513)
This means we won't need a module_dot_bazel.patch file on BCR anymore
2023-09-05 15:19:15 -07:00
Greg Magolan 1654a5fdc6
chore: update to Aspect Workflows 5.7.3 (#511) 2023-09-03 12:40:13 -07:00
Greg Magolan 3eee029152
chore: update to Aspect Workflows 5.7.1 (#509) 2023-08-30 22:27:49 -07:00