Skip to content

watch is confusing #129

@jellevandenhooff

Description

@jellevandenhooff

Hi! Thank you for your delightful software.

I tried the following tasks.toml.

# tasks.toml

[[task]]
id = "go-test"
type = "short"
watch = ["**/*.go"]
cmd = """
    go test ./...
  """

I ran run -ui=tui go-test. This ran my tests.

Then I went and changed a go file and expected the tests would run again. The tests did not run again, even though @watch claiming to be watching **/*.go.

Eventually I figured out that running a long dev task depending on go-test fixed the re-runner. Is this behavior intended?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions