Skip to content

Conversation

@trulede
Copy link
Contributor

@trulede trulede commented Nov 14, 2025

This PR adjusts the when_changed behaviour to work more effectively with imported tasks, with reasoning similar to that behind PR #1655. A task imported several times with when_changed probably should only be run once per "variable set" regardless of how many times that task is imported (by other taskfiles).

I'm not certain if this change is the correct behaviour, it could be that this use case also represents a new run condition.

Fixes #2508

Copy link
Member

@andreynering andreynering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. Thank you very much @trulede!

@andreynering andreynering merged commit 386dcbc into go-task:main Nov 22, 2025
13 checks passed
andreynering added a commit that referenced this pull request Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

run: when_changed not deduping properly in some cases

2 participants