Skip to content

Commit 45e41c8

Browse files
committed
dockerfile: add missing mount completions
Now users will get suggestions for misspelled "destination" and "size" mount options: ERROR: failed to solve: unexpected key 'destinationn' in 'destinationn=/lol' (did you mean destination?) ERROR: failed to solve: unexpected key 'sizee' in 'sizee=1024' (did you mean size?) Signed-off-by: Arkadiusz Drabczyk <[email protected]>
1 parent add7328 commit 45e41c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/dockerfile/instructions/commands_runmount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func parseMount(val string, expander SingleWordExpander) (*Mount, error) {
254254
m.GID = &gid
255255
default:
256256
allKeys := []string{
257-
"type", "from", "source", "target", "readonly", "id", "sharing", "required", "mode", "uid", "gid", "src", "dst", "ro", "rw", "readwrite",
257+
"type", "from", "source", "target", "readonly", "id", "sharing", "required", "size", "mode", "uid", "gid", "src", "dst", "destination", "ro", "rw", "readwrite",
258258
}
259259
return nil, suggest.WrapError(errors.Errorf("unexpected key '%s' in '%s'", key, field), key, allKeys, true)
260260
}

0 commit comments

Comments
 (0)