[FeatureRequest] Respect trailing slashes in .dockerignore

Open
#4,252 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, go
Domain
build-system

Research direction

The issue provides no source file or test path. Start by locating the .dockerignore parsing and matching entry points in the BuildKit repository, then find existing tests for ignore patterns. Done means a pattern such as .*/ distinguishes hidden directories from hidden files as requested, with regression coverage.

Written by the indexing model from the issue text.

Description

kind/enhancement

If your .dockerignore looks like this

.*/

you probably want to exclude all hidden folders (but not hidden files). Using Docker 17.03.1-ce, both, hidden files and hidden folders are ignored. I'd love to see that feature in a future release.

Dominant language
Go
Stars
10.3k
Forks
1.5k
Avg merge
1d 23h
Merged PRs (30d)
48

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moby/buildkit

All issues in moby/buildkit

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.