Commit a4cca76
fix: watch local packages to refetch if files are added/updated (#1489)
Call `repository_ctx.watch_tree` to ensure that repositories are
refetched for local SPM packages if new files are added or removed. This
will also cause a refetch if a file's content changes, but I didn't see
a way to only watch for changes to file creation/deletion.
Without this I was experiencing issues where local SPM packages would
fail to compile after pulling down changes from git because new files
were added without the repo's `BUILD.bazel` file being updated as well.
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>1 parent 0cfeb00 commit a4cca76
File tree
2 files changed
+6
-1
lines changed- swiftpkg
- bzlmod
- internal
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
0 commit comments