guybedford / guybedford/chomp

Changing the chompfile.toml while watching via `chomp -w` does not invalidate

Open
#92 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
168
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I modified the chompfile while using chomp -ws and I was expecting it to re-build targets affected by the task whose options I modified:

[[task]]
  name = "build:html"
  template = "jspm"
  target = "lib/index.html"
  deps = ["src/index.html", ":build:svelte", ":build:typescript"]
  [task.template-options]
    env = ["browser", "production"]
    preload = true
    integrity = true

I added whitespace = false to the template-options, expecting index.html's import map to be formatted differently.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the shown chompfile.toml by running chomp -ws, then changing the build:html task's template-options. Trace how watch mode detects chompfile changes and invalidates dependent targets. Done means changing whitespace causes lib/index.html to rebuild and the import map formatting to reflect the new option.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.