Canop / Canop/bacon

Watch & Workspace: path error

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

Description

Hey there,
I’m trying out Bacon on a rather complex project organized in a Workspace.
I’ve configured a number of jobs, which are all launched correctly, no problem.

However, the watch directories are borked.
From what I see in the logs, the directories in the _watch_ use the first crate as the root.
For example let’s say ̇I have:
Folder1
Folder2
If I put _watch = ["Folder1", "Folder2"]_ then beacon will complain that it can’t find _"/root/path/Folder1/Folder1"_ and _"/root/path/Folder1/Folder2"_.

If I put _watch = ["../Folder1", "../Folder2"]_ however it seems to be working just fine.

Contributor guide

Open the contributing guide

Research direction

No source files or tests are named in the issue. Reproduce the problem with a Workspace containing multiple crates and watch entries such as "Folder1" and "Folder2", then trace how watch paths are resolved. Done means workspace watch directories resolve from the intended root without requiring ../ prefixes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.