-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add tasks for all affected modules on watch
Before this commit, changing a file belonging to more than one module (i.e. where both/all modules are defined in the same garden.yml) would only add tasks for the first module defined in that garden.yml. After this change, tasks are added for all modules in the file when their shared sources change.
- Loading branch information
Showing
7 changed files
with
92 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
garden-service/test/data/test-project-watch/double-module/foo.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bar |
29 changes: 29 additions & 0 deletions
29
garden-service/test/data/test-project-watch/double-module/garden.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module: | ||
name: module-b | ||
type: test | ||
services: | ||
- name: service-b | ||
build: | ||
command: [echo, B] | ||
tests: | ||
- name: unit | ||
command: [echo, OK] | ||
tasks: | ||
- name: task-b | ||
command: [echo, OK] | ||
|
||
--- | ||
|
||
module: | ||
name: module-c | ||
type: test | ||
services: | ||
- name: service-c | ||
build: | ||
command: [echo, C] | ||
tests: | ||
- name: unit | ||
command: [echo, OK] | ||
tasks: | ||
- name: task-c | ||
command: [echo, OK] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters