Skip to content

Cache doesn't take modified dependencies into account #672

Closed

Description

@mihe

Not sure if this is by design or not, but it seems the caching doesn't take modifications of the code you're importing into account at all when calculating the hash.

I just had a problem where my Mocha tests (that are written in TypeScript, using -r ts-node/register) were still running just fine despite the fact that I'd changed the signature of the functions I was importing and testing.

With the cache disabled I got the compilation errors I was expecting.

If this is the intended behavior I would consider it somewhat dangerous to have the cache enabled by default.

Activity

  1. blakeembrey commented on Aug 26, 2018

    @blakeembrey
    Member

    @mihe This is a very good point. I'll think about how this may be solved, and if I come up with nothing, disable/remove in the next release.

  2. crysislinux commented on Sep 28, 2018

    @crysislinux

    I am not sure if I hit the same problem.

    My project can run with --no-cache, but not without it.

  3. webuniverseio commented on Jun 6, 2022

    @webuniverseio

    Not sure in which version this got fixed, but I had trouble with 9.1.1 release, I end up using --prefer-ts-exts=true which is skipping js cache and using ts files instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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