buildkit/frontend
Sebastiaan van Stijn 2105de3499
frontend/dockerfile: show original stagename in error-message
Before this change, the error message would show the invalid name in lowercase:

    docker build -<<'EOF'
    FROM busybox AS foo:$BAR
    EOF

    [+] Building 0.2s (2/2) FINISHED
    => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                                                             0.0s
    => => transferring dockerfile: 67B                                                                                                                                                                                                                                                                                                                              0.0s
    => [internal] load .dockerignore                                                                                                                                                                                                                                                                                                                                0.1s
    => => transferring context: 2B                                                                                                                                                                                                                                                                                                                                  0.0s
    failed to solve with frontend dockerfile.v0: failed to create LLB definition: Dockerfile parse error line 1: invalid name for build stage: "foo:$bar", name can't start with a number or contain symbols

With this patch, the invalid stagename is shown as-is

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-11-26 13:50:40 +01:00
..
dockerfile frontend/dockerfile: show original stagename in error-message 2019-11-26 13:50:40 +01:00
gateway session: use errors cause 2019-06-06 21:15:21 -07:00
frontend.go support local cache exporter and importer 2019-01-19 02:38:26 +09:00
frontend_test.go integration: generalize pkg 2019-03-21 23:49:08 -07:00
result.go llbsolver: use result type with multi ref support 2018-07-12 17:52:23 -07:00