Skip to content

Commit

Permalink
fix: don't watch project-level log files
Browse files Browse the repository at this point in the history
Added *.log to the list of path patterns ignored by default.

Previously, running `garden get status` in a project where

* Another Garden command is running in watch mode, and

* A service from a module at the project level (i.e. with its
module config in the project-wide `garden.yml`) is deployed
with hot reloading enabled,

would erroneously trigger a hot reload of that service, due to the
project-level `error.log` getting touched during the execution of
`garden get status`.

Fixes #387.
  • Loading branch information
thsig committed Jan 24, 2019
1 parent 17528ea commit 81c8d04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions garden-service/src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export async function getIgnorer(rootPath: string): Promise<Ignorer> {
ig.add([
"node_modules",
".git",
"*.log",
GARDEN_DIR_NAME,
])

Expand Down

0 comments on commit 81c8d04

Please sign in to comment.