Skip to content

ExecRunner's getWorkingDir should not be cached #40

Closed
@jfbibeau

Description

@jfbibeau

(Apologies for not submitting a PR, my company doesn't allow me to do open source contribution easily yet)

Looks like this PR https://github.com/node-gradle/gradle-node-plugin/pull/32/files introduced a small bug:

On this line: https://github.com/node-gradle/gradle-node-plugin/blob/master/src/main/groovy/com/moowork/gradle/node/exec/ExecRunner.groovy#L35

The working directory should not be a caching input. Currently the way this is set up, it will take into account the contents of the working directory, and also because the PathSensitive annotation is not set, it means the entry will not be cached correctly on different machines/different checkout directories.

Therefore I believe workingDir should not be taken into account in the cache, and be annotated simply with @Internal:

    @Internal
    File getWorkingDir()
    {
        return workingDir
    }

Thanks for the consideration!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions