From e3571eee430edd46066df46eedcc322c40eb5769 Mon Sep 17 00:00:00 2001 From: Bryce Lampe Date: Thu, 29 Feb 2024 12:52:46 -0800 Subject: [PATCH] Remove warning about gitignore (#1001) Fixes https://github.com/pulumi/pulumi-docker/issues/989 --- provider/image.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/provider/image.go b/provider/image.go index 3f93f531..8dda8c83 100644 --- a/provider/image.go +++ b/provider/image.go @@ -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},