Skip to content

sources to support reading an ignore, and looking at the opposite of what's ignored #709

@ghostsquad

Description

@ghostsquad

I found myself writing this:

  docker:bake:
    deps:
    - docker:create-multiarch-builder
    # this should match what's in .dockerignore
    sources:
    - ./cmd/**/*
    - ./internal/**/*
    - ./proto/**/*
    - ./testdata/**/*
    - ./go.*

with a .dockerignore file of:

*
!cmd/
!internal/
!proto/
!testdata/
!go.*

and thought, wouldn't it be nice if...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions