Derek Cormier
998ee22369
fix: improve error message in directory_path when directory does not ( #192 )
...
exist
2022-07-22 09:37:27 -07:00
Derek Cormier
d0a897488b
fix: patch diff_test with runfiles fix
2022-07-15 13:07:28 -07:00
renovate[bot]
6a29defd77
chore(deps): update dependency bazel_gazelle to v0.26.0
2022-07-15 10:00:18 -07:00
Alex Eagle
8a11a106db
chore: change default for run_binary#stamp
...
Greg convinced me that users will get really slow stamped builds because most run_binary tools don't actually read the status files, but will be cache-invalidated.
2022-07-15 09:29:28 -07:00
Alex Eagle
56bc408d94
feat: add stamping ability to run_binary
...
Fixes #185
2022-07-14 22:37:42 -07:00
Alex Eagle
de081fb72e
feat: basic stamping support
2022-07-14 22:37:42 -07:00
Alex Eagle
6f52c77a51
assert that directories aren't included in file_exists
2022-07-14 07:53:05 -07:00
Alex Eagle
546758589d
Add utility for checking file existence.
...
Avoids continued copy-paste of this like https://github.com/aspect-build/rules_ts/blob/main/ts/defs.bzl#L35-L44
2022-07-14 07:53:05 -07:00
Jesse Schalken
f2e5f4675f
fix: diff_test not working for files in directories starting with "external"
...
Example "external-dependencies/foo.txt"
2022-07-07 16:31:00 -07:00
Derek Cormier
a24508a202
fix: remote target_compatible_with from jq and yq toolchains
2022-07-06 10:46:23 -07:00
Derek Cormier
77474915d8
docs: encourage use of latest yq/jq in docs
2022-07-02 10:00:23 -07:00
Derek Cormier
d128b38a6d
fix: fix broken link in README
2022-06-29 13:17:16 -07:00
Derek Cormier
6dbfbba082
chore: change the auto bcr presubmit.yml
2022-06-28 11:06:36 -07:00
Greg Magolan
d4f6524fbd
feat: add copy_to_directory_action
2022-06-28 09:08:45 -07:00
Alex Eagle
910786038c
chore: improve error when run_binary has no outputs
...
Otherwise users get
```
Traceback (most recent call last):
File "/private/var/tmp/_bazel_long.ho/a2216e06a77a9425f6dcd5fd195f64d5/external/aspect_bazel_lib/lib/private/run_binary.bzl", line 46, column 20, in _impl
ctx.actions.run(
Error in run: param 'outputs' may not be empty
```
2022-06-27 12:30:13 -07:00
renovate[bot]
5307f58557
chore(deps): update dependency bazel to v5.2.0 ( #170 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-24 12:30:45 -07:00
David
f08952a8a6
docs: add a note about excluding from linters/formatters ( #156 )
2022-06-24 12:30:08 -07:00
Derek Cormier
df04df7cd2
ci: change token for bcr publish
2022-06-23 17:05:26 -07:00
Derek Cormier
de6e9ef843
fix: improve copy_to_bin error messaging when file is in external repo
2022-06-22 10:43:16 -07:00
Matt Mackay
829e5d513d
feat: add buildozer command to add visibility to the copy_to_bin helper error ( #171 )
2022-06-22 16:46:35 +01:00
Alex Eagle
32882befdf
feat: let jq act like copy_to_bin
...
This lets you have a file in the output tree with the same path as a source file, but modified.
2022-06-21 18:40:29 -07:00
Jesse Tatasciore
63ae772087
fix: Allow relative_file to take in paths starting with ../ ( #166 )
...
* fix: relative_file fix when to path is itself relative starting with ../
* feat: Allow users to use ../ in paths and add tests
* fix: Clarify documentation
Co-authored-by: Greg Magolan <gmagolan@gmail.com>
2022-06-20 14:21:49 -07:00
Derek Cormier
ce015ca4f3
fix: support non-json input files in jq
2022-06-17 10:27:18 -07:00
Greg Magolan
b3c2884bdf
feat: add mnemonic, progress_message && execution_requirements to run_binary ( #161 )
2022-06-16 16:58:41 -07:00
Greg Magolan
14f83ab4e8
feat: add out_dirs to run_binary rule and deprecate output_dir ( #160 )
2022-06-16 16:26:29 -07:00
Derek Cormier
627ac0b82c
fix: don't set assignees for bcr pr
2022-06-16 14:03:50 -07:00
Derek Cormier
35adb03d48
chore: create a pull request against our bcr fork on successful release
2022-06-16 12:06:35 -07:00
Derek Cormier
80603fb7eb
fix: fix a bug where two copy_to_bin actions couldn't copy the same file
2022-06-16 11:49:09 -07:00
Derek Cormier
3ff61c57e9
fix: fix a bug where write_source_files diff_test fails on windows when
...
a source is from an external repository
2022-06-16 09:10:30 -07:00
Greg Magolan
6ba7c64c8d
feat: add allow_overwrites attribute to copy_to_directory and disable overwrites as the default behavior on linux and macos ( #153 )
2022-06-14 10:52:40 -07:00
Greg Magolan
63014de382
chore: cleanup fail msgs with substitutions for cleaner error logs
2022-06-14 06:46:34 -07:00
Alex Eagle
5a39b1fdab
chore: warn when copy_to_bin reads from bazel-out
2022-06-13 19:07:40 -07:00
Alex Eagle
562c4b231d
feat: add to_output_relative_path
...
This is useful in rules_js ecosystem where the working directory is bazel-out/arch/bin so many paths need to be relative to there.
2022-06-13 12:55:22 -07:00
Alex Eagle
fafdd8610c
chore: remove unneeded bazelisk setup
2022-06-11 12:57:49 -07:00
Renovate Bot
d19d6efafe
chore(deps): update bazelbuild/setup-bazelisk action to v2
2022-06-11 12:57:49 -07:00
Renovate Bot
1fcd85b247
chore(deps): update dependency bazel_skylib to v1.2.1
2022-06-10 17:46:01 -07:00
Renovate Bot
6df5112813
chore(deps): update dependency io_bazel_rules_go to v0.33.0
2022-06-10 17:45:32 -07:00
Renovate Bot
0ec727048b
chore(deps): update actions/setup-node action to v3
2022-06-10 17:42:35 -07:00
Alex Eagle
40f130b43b
refactor: nicer pattern for inlined maybe
2022-06-10 14:04:49 -07:00
Alex Eagle
d8ec2bc0db
chore: update generated docs
2022-06-10 13:14:02 -07:00
Renovate Bot
fdbbc80fd7
chore(deps): update dependency io_bazel_stardoc to v0.5.1
2022-06-10 13:14:02 -07:00
renovate[bot]
12db1f32f9
chore(deps): update actions/checkout action to v3 ( #140 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-10 13:00:59 -07:00
renovate[bot]
f6bc73cb28
chore(deps): update actions/cache action to v3 ( #139 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-10 13:00:44 -07:00
Alex Eagle
abc3128fe7
refactor: remove use of maybe() helper ( #138 )
...
This allows renovate to understand our dependencies
2022-06-10 12:51:13 -07:00
renovate[bot]
bdcff8b3d5
chore(deps): add renovate.json ( #135 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-10 12:49:41 -07:00
Alex Eagle
695a8c4ad4
fix: copy_to_directory repairs read-only file permissions ( #134 )
...
When two srcs have the same nested folder, we need to correct the permissions like bazel's sandbox would.
Fixes #133
2022-06-08 15:41:54 -07:00
Derek Cormier
73bfc53660
Use PAT to publish prs to bcr on release
2022-06-07 10:57:21 -07:00
Derek Cormier
fbb26dc678
chore: remove hardcoded toolchain versions from workspace snippet
2022-06-06 12:28:06 -07:00
Alex Eagle
14cc74b2cb
fix escaping in release snippet
2022-06-06 11:56:40 -07:00
Alex Eagle
15d95b9dc1
fix escaping in release snippet
2022-06-06 11:56:04 -07:00