Skip to content

Commit 969de84

Browse files
edwintorokMisterDA
authored andcommitted
Dockerfile.mount_cache: readonly is a flag, not a boolean
Attempting to set `readonly:true` results in this error: `readonly: must not provide an argument for option` `readonly` is chosen by the presence of the flag, so use `optional_flag` instead. Signed-off-by: Edwin Török <edwin.torok@cloud.com>
1 parent 60ae257 commit 969de84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dockerfile.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ let string_of_mount { typ } =
308308
String.concat ","
309309
([ "--mount=type=cache" ] @ optional "id" id
310310
@ [ sprintf "target=%s" target ]
311-
@ optional_bool "readonly" readonly
311+
@ optional_flag "readonly" readonly
312312
@ (match sharing with
313313
| None -> []
314314
| Some `Shared -> [ "sharing=shared" ]

0 commit comments

Comments
 (0)