Skip to content

Commit

Permalink
Add warning
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Kopping <[email protected]>
  • Loading branch information
dannykopping committed Apr 24, 2024
1 parent 161f383 commit 4bb1307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func Run(ctx context.Context, options Options) error {
// not defined, show a warning
dockerfileDir := filepath.Dir(dockerfilePath)
if dockerfileDir != filepath.Clean(options.WorkspaceFolder) && options.BuildContextPath == "" {
logf(codersdk.LogLevelWarn, "given dockerfile %q is below %q and no custom build context has been defined; set BUILD_CONTEXT_PATH to %q", dockerfilePath, options.WorkspaceFolder, dockerfileDir)
logf(codersdk.LogLevelWarn, "given dockerfile %q is below %q and no custom build context has been defined; set BUILD_CONTEXT_PATH to %q to fix", dockerfilePath, options.WorkspaceFolder, dockerfileDir)
}

dockerfile, err := options.Filesystem.Open(dockerfilePath)
Expand Down

0 comments on commit 4bb1307

Please sign in to comment.