Skip to content

cached task overwrites modified top level files (that are outside of src/) #766

@harunurhan

Description

@harunurhan

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Define a package with a target and no inputs and outputs specified, and package needs to have some files under src/ folder and top level like jest.config.js
  2. Run the task once (so it's cached)
  3. Make a change to a top-level file
  4. Re-run the same task (it should be skipped)
  5. You will see that changes you made to the top level file are reverted after the cached/skipped task run. Observe that this isn't valid for files that starts with . like .eslintrc.js

Expected behavior

Cached task runs should not revert any changes by default. Although it can be worked around using inputs and outputs, it's a strange default behaviour.

Environment/Troubleshooting

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions