cobalt.rs: Watch command loops endlessly
I ran cobalt watch
on my project and then ran cd /my/project/dir
in another terminal. Cobalt starts to endlessly rebuild the project.
Work around: add an ignore
for your dest
folder, like
ignore: ["build/*"]
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- fix(watch): Ignore dest rather than rebuild Previously, when `watch` does a rebuild, it'd be notified of changes to the build directory, causing another rebuild. In #227, the file walking code was r... — committed to epage/cobalt.rs by epage 7 years ago
- fix(watch): Ignore dest rather than rebuild Previously, when `watch` does a rebuild, it'd be notified of changes to the build directory, causing another rebuild. In #227, the file walking code was r... — committed to epage/cobalt.rs by epage 7 years ago
- chore: Release 0.7.3 Features * Support `:categories` in permalink ([a9b4474f](https://github.com/cobalt-org/cobalt.rs/commit/a9b4474fdfa23279f0081a8864d7b6601f4e2b2d)) * Support nested frontmatter ... — committed to cobalt-org/cobalt.rs by epage 7 years ago
@epage sorry for the slow response. Yes, the behavior is exactly as you describe it. I think the ignore functionality isn’t working properly.
I just tried this with a new Cobalt site, and it’s the same behavior.
I compiled Cobalt from
master
last week:I have the default
.cobalt.yml
:Here is what happens when I compile from within the site directory:
I happened to find out today that the correct ignore syntax would be
ignore: [".git/*"]
, which solves this issue.