Skip to content

Allow bind mount and watch at the same time #12082

@remcokranenburg

Description

@remcokranenburg

Description

I would like to use a bind mount to sync a very large directory, which is a bit more robust than using file watches. File watches tend to miss changes, especially when it is watching thousands of files. In that large directory are a few files (pypoetry.toml and poetry.lock) that need to trigger a rebuild. Right now, it's impossible to combine a global bind mount with some small rebuild watches, because it triggers the following warning, which skips the watch:

WARN[0004] path '/project/pyproject.toml' also declared by a bind mount volume, this path won't be monitored!

The reason for this warning, is to help the user create a sane compose.yaml file, by not allowing this overlap. I think we can find a middle ground. Instead of disallowing it, this should just perform the watch anyway, but still log a message.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions