We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ec1338 commit 8a254a7Copy full SHA for 8a254a7
frontend/dockerfile/dockerfile_lint_test.go
@@ -786,6 +786,20 @@ ENV PATH=$PAHT:/tmp/bin
786
},
787
788
})
789
+
790
+ dockerfile = []byte(`
791
+FROM alpine
792
+ARG FOO
793
+ARG BAR=
794
+RUN env | grep 'BAR='
795
+RUN env | grep 'FOO='
796
+`)
797
+ checkLinterWarnings(t, sb, &lintTestParams{
798
+ Dockerfile: dockerfile,
799
+ StreamBuildErr: `failed to solve: process "/bin/sh -c env | grep 'FOO='" did not complete successfully: exit code: 1`,
800
+ UnmarshalBuildErr: `process "/bin/sh -c env | grep 'FOO='" did not complete successfully: exit code: 1`,
801
+ BuildErrLocation: 6,
802
+ })
803
}
804
805
func testMultipleInstructionsDisallowed(t *testing.T, sb integration.Sandbox) {
0 commit comments