Skip to content

Depending on files that are targets of other tasks #183

Description

@jollytoad

So I'm trying to create a build where I have multiple packages, that will build into separate output dirs.

For example src/one will end up in dst/one.

I was trying to create tasks to process files from src to dst:

[[task]]
target = 'dst/#/manifest.yml'
dep = 'src/#/manifest.yml'
run = 'cp $DEP $TARGET'

(cp is just for example, in reality i may have some transformation process)

This does exactly what I expect:

chomp dst/one/manifest.yml

There will be many more tasks that process stuff from src to dst, so I'd like a build:<name> task to handle that, but for this example I'll stick to the one file:

[[task]]
name = 'build:#'
dep = 'dst/#/manifest.yml'

after deleting dst, I run:

chomp build:one

but get:

Error: File /..../dst/one/manifest.yml not found

TBH, I expected that to trigger the first task and cp the file into dst.

Am I miss understanding how chomp works, should I be doing this differently, or is this an actual bug?

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions