Skip to content

Commit

Permalink
Remove warning about gitignore (#1001)
Browse files Browse the repository at this point in the history
Fixes #989
  • Loading branch information
blampe committed Feb 29, 2024
1 parent 5ff5f92 commit e3571ee
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions provider/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,6 @@ func (p *dockerNativeProvider) dockerBuild(ctx context.Context,
false,
)

// warn user about accidentally copying build files
if build.BuilderVersion == defaultBuilder && len(initialIgnorePatterns) != len(ignorePatterns) {
msg := "It looks like you are trying to dockerignore a build file such as `Dockerfile` or `.dockerignore`. " +
"To avoid accidentally copying these files to your image, please ensure any copied file systems do not " +
"include `Dockerfile` or `.dockerignore`."
_ = p.host.Log(ctx, "warning", urn, msg)
}

tar, err := archive.TarWithOptions(contextDir, &archive.TarOptions{
ExcludePatterns: ignorePatterns,
ChownOpts: &idtools.Identity{UID: 0, GID: 0},
Expand Down

0 comments on commit e3571ee

Please sign in to comment.