Commit Graph

535 Commits

Author SHA1 Message Date
Greg Magolan 8f02b3364e
feat: add to_rlocation_path and to_repository_relative_path functions to paths.bzl (#362) 2023-02-11 12:36:49 -08:00
Derek Cormier 096805f0ce enhancement: allow additional attributes to be passed to assert_* tests 2023-02-10 07:14:05 -08:00
Greg Magolan fe1dc9c734 chore: remove New PR workflows as it doesn't work on forks 2023-02-08 11:35:25 -08:00
Greg Magolan 16d9f9cb18 chore: add workflows for new issues & PRs 2023-02-07 10:58:14 -05:00
Jason Bedard 05a92b8b99
fix: show directory being copied to in copy_to_directory progress message (#345)
* fix: use formatted short_path in copy progress messages

* fix: display destination directory in copy_to_directory progress message
2023-02-05 20:47:02 -08:00
Derek Cormier d413641195 fix: fix a bug where `bazel run @jq//:jq` cannot be run on M1 2023-02-03 08:15:48 -08:00
Greg Magolan 8493c3427c
fix: migrate Aspect Workflows configuration past breaking changes (#355) 2023-02-03 07:15:37 -08:00
Greg Magolan 95d4b6974c
fix: update copy_directory and copy_to_directory to use binaries with copy concurrency limited (#352) 2023-02-01 16:14:51 -08:00
Thulio Ferraz Assis 2854f86e56
fix: limit copy concurrency (#351)
Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
2023-02-01 12:30:42 -08:00
Alex Eagle 3d58a71c60 fixup! release: publish release artifact 2023-02-01 10:43:45 -08:00
Alex Eagle dead59b7b0 release: publish release artifact
GitHub's stability guarantee for the archive is iffy, and we want metrics on downloads.
See https://github.com/bazel-contrib/SIG-rules-authors/issues/11#issuecomment-1412241948
2023-02-01 10:43:45 -08:00
Alex Eagle cb610ef169 chore: change to unzip -Z as it looks more likely to be on windows 2023-01-20 16:16:42 -08:00
Alex Eagle 2cb6c7ac4f chore: also accept expected as a list of entries 2023-01-20 16:16:42 -08:00
Alex Eagle 19dcea9828 refactor: infer the archive type from the filename 2023-01-20 16:16:42 -08:00
Alex Eagle 9b7250d146 test: add happy-path test for assert_archive_contains 2023-01-20 16:16:42 -08:00
Alex Eagle 083ff26ced feat: add assert helper for zip contents
Helps to make sure that Python wheels are correctly constructed, as one example.
2023-01-20 16:16:42 -08:00
renovate[bot] 78f8151760
chore(deps): update dependency io_bazel_rules_go to v0.37.0 (#290)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-17 10:12:01 -08:00
renovate[bot] 3279948d60
chore(deps): update dependency bazel_gazelle to v0.29.0 (#325)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-17 10:11:43 -08:00
Greg Magolan 1deb42c31f
chore: update copy toolchain to latest releases (#340) 2023-01-16 22:11:33 -08:00
Greg Magolan de8d9cae3d
fix: use custom realpath function in copy_directory and copy_to_directory since github.com/yookoala/realpath has bugs on Windows (#338) 2023-01-16 21:46:50 -08:00
Greg Magolan 25a3040180
chore: add e2e/workspace test (#339) 2023-01-16 21:46:39 -08:00
Greg Magolan d5631bc18d
chore: update copy toolchains to latest release (#337) 2023-01-16 19:38:56 -08:00
Greg Magolan 497409b15b
fix: bzlmod toolchain registration for copy_directory & copy_to_directory (#336) 2023-01-16 19:37:36 -08:00
Greg Magolan 63f5aff803
feat: hardlink generated files in copy_to_directory and copy_directory instead of copying (#321) 2023-01-16 17:19:13 -08:00
Greg Magolan 74caa5c097
fix: on Windows you must call filepath.Walkdir on the realpath and not the symlink path (#335) 2023-01-16 15:41:39 -08:00
Greg Magolan ce043b299d
fix: fix pathing issue in new copy_to_directory binary tool on Windows (#334) 2023-01-16 15:09:18 -08:00
Sahin Yort 4dc36a97f2
feat: add coreutils toolchain (#332) 2023-01-16 21:02:17 +03:00
Greg Magolan 3cf8ffa135
chore: upgrade to Aspect CLI 5.1.2 (#331) 2023-01-15 21:52:16 -08:00
Greg Magolan 1d3f04f7b9
chore: cleanup copy_to_directory docs and expose attr docstrings via lib for use downstream (#330) 2023-01-15 13:24:15 -08:00
Greg Magolan e84d97a161
refactor: parallize copy_to_directory binary tool using go routines (#329) 2023-01-15 12:41:00 -08:00
Greg Magolan 83671910f7
chore: cleanup copy tools golang code (#327) 2023-01-15 12:17:30 -08:00
Greg Magolan 01f5c3e949
chore: parallelize copies in copy_directory with go routines (#326) 2023-01-14 19:09:57 -08:00
Greg Magolan 7b6c814e27
Add copy_directory binary tool (#324) 2023-01-14 15:51:01 -08:00
Greg Magolan 4edb5018e8
chore: update pre-bazel 6 work-around in utils to only apply for bazel versions < 6 (#320) 2023-01-14 12:13:02 -08:00
Greg Magolan 8d21ed00d4
Add hardlink support to copy_to_directory binary tool (#322) 2023-01-14 07:55:23 -08:00
Alex Eagle 14b8ec7a7b refactor: just point to jq doc 2023-01-09 11:31:15 -08:00
Derek Cormier 0df23e54db feat: modify assert_json_matches api before release 2023-01-09 11:31:15 -08:00
Derek Cormier c64bb72324 fix: write_source_files incompatibility with bzlmod when writing from external repo 2023-01-09 10:54:51 -08:00
Alex Eagle fc0ff4de2b chore: update bcr homepage 2023-01-07 16:53:48 -08:00
Alex Eagle fe867981ee feat(jq): add a diff_test helper
This is useful in rules_swc where we want to check that tsconfig.json and .swcrc have matching paths, and most users will want that too
2023-01-07 13:10:28 -08:00
Greg Magolan fb3ef6e45d
feat: improved copy_to_directory performance & globbing support using copy_to_directory_bin_action (#311) 2023-01-07 11:26:27 -08:00
Konstantin Zadorozhny b13fd20bee
Remove the use of realpath in tests (#315)
* do not use realpath

* make the file to follow symlinks on linux
2023-01-06 11:56:25 -08:00
Greg Magolan bf76da829c
fix: handle directory symlinks in copy_to_directory_bin_action tool binary (#314) 2023-01-06 10:29:45 -08:00
Greg Magolan f241f28f17
chore: switch copy_to_directory binary tool to use com_github_bmatcuk_doublestar_v4 instead of com_github_gobwas_glob (#313) 2023-01-05 14:24:24 -08:00
Greg Magolan 1aa5280092 chore: fixup GH release yaml 2023-01-03 12:37:05 -08:00
Greg Magolan 8457e351a1
chore: update release to include copy_to_directory action binary (#309) 2023-01-03 12:26:51 -08:00
Greg Magolan ec13ec9a69
feat: improve performance of copy_to_directory by moving glob match & copying to a golang binary (#308) 2023-01-03 09:42:20 -08:00
Greg Magolan 8334e127a7
chore: update to Aspect CLI v5.1.1 (#310) 2023-01-03 00:23:16 -08:00
Greg Magolan b5e5edc158
chore: bring in multi-platform releases rules for copy_to_directory golang binary (#306) 2023-01-01 16:14:48 -08:00
Greg Magolan 4ad1dc2398
chore: run gazelle for golang (#305) 2023-01-01 15:37:00 -08:00