Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cobalt serve shouldn't rebuild when an ignored files change #1197

Open
skierpage opened this issue Jul 10, 2024 · 1 comment
Open

cobalt serve shouldn't rebuild when an ignored files change #1197

skierpage opened this issue Jul 10, 2024 · 1 comment
Labels
bug Not as expected

Comments

@skierpage
Copy link

% cd myBlog
% cobalt serve &
Watching "/tmp/myBlog" for changes
Serving /tmp/.tmpKWpOeX through static file server
Server Listening on http://localhost:1024
Ctrl-c to stop the server
Watching "/tmp/myBlog" for changes

% touch _IGNORED_FILE
Building from `/tmp/myBlog` into `/tmp/.tmpKWpOeX`

Expected result:

If a file is ignored by cobalt serve and cobalt build and is not a directory or file known to Cobalt such as _cobalt.yml, _defaults, and _layouts, then changing it should not trigger a rebuild.

Cobalt is so fast to rebuild that this is a minor bug.

@epage epage added the bug Not as expected label Jul 10, 2024
@epage
Copy link
Member

epage commented Jul 10, 2024

This is because we build from files that are also ignored.

What I would like to do is restructure things is to rebuild incrementally. So if we kick off a rebuild for an ignored file, nothing would change. When we kick off a build for a source file, only the relevant parts of the site would rebuild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not as expected
Projects
None yet
Development

No branches or pull requests

2 participants