Canop / Canop/bacon

Don't watch all sources of other packages in the same workspace, but only Cargo.* files

Open
#305 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
3.4k
Forks
126
Avg merge
2d 1h
Merged PRs (30d)
7

Description

Right now, when you launch bacon on a package in a workspace, all the packages of that workspace are watched, even if they're not dependencies of the current package.

But it's probably enough to watch the Cargo.toml and Cargo.lock at the workspace level and in other packages of the workspace. Source/Test files in other packages which aren't dependencies can't impact the package.

Any different insight on that ?
([related survey](https://miaou.dystroy.org/4683?bacon#17693001))

Contributor guide

Open the contributing guide

Research direction

Start at the workspace/package file-watching entry point and trace how Cargo.toml and Cargo.lock are selected for workspace packages versus source and test files. Verify the behavior with a workspace containing unrelated packages; done means changes in unrelated package sources no longer trigger bacon, while relevant Cargo.* changes remain watched.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.