Skip to content

Calling ExpandFiles on a path with spaces breaks fingerprinting #2321

@madpipeline

Description

@madpipeline

fs, err := execext.ExpandFields(g)

tasks:
  check-sources:
    sources:
      - sources.txt
    generates:
      - test.txt
    cmds:
      - cat sources.txt > test.txt

If a project lives in a path that contains a directory with spaces, this call to ExpandFiles will split the path at the space and then the fingerprinting will happen on a partial path and fail on line 37 because the given path does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: fingerprintingChanges related to checksums and caching.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions