Skip to content

Commit eb3ea11

Browse files
committed
update instructions to work with bsd and gnu sed
1 parent 92436c3 commit eb3ea11

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

bazel/test/.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.6.0
1+
6.1.1

bazel/test/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ When developing changes, you may want to test your modifications before they're
2121

2222
2. Temporarily modify `bazel/container_structure_test.bzl`:
2323
```sh
24-
# Backup the original
25-
cp bazel/container_structure_test.bzl bazel/container_structure_test.bzl.backup
26-
27-
# Replace the st_path reference with your local binary
28-
sed -i '' 's|readonly st=$(rlocation {st_path})|readonly st="/tmp/container-structure-test-local"|g' bazel/container_structure_test.bzl
24+
sed -i.bak 's|readonly st=$(rlocation {st_path})|readonly st="/tmp/container-structure-test-local"|g' bazel/container_structure_test.bzl
2925
```
3026

3127
3. Run the bazel test:
@@ -36,7 +32,7 @@ When developing changes, you may want to test your modifications before they're
3632

3733
4. Restore the original rule:
3834
```sh
39-
mv bazel/container_structure_test.bzl.backup bazel/container_structure_test.bzl
35+
mv bazel/container_structure_test.bzl.bak bazel/container_structure_test.bzl
4036
```
4137

4238
This allows you to verify that your changes work correctly with the bazel integration before submitting them.

0 commit comments

Comments
 (0)