Repository navigation
Conversation
`--mount ...,readonly=false` (or `ro=0`) produced a read-only mount because the value of `readonly`/`ro` was ignored. Accept true/false/1/0 like `docker --mount`, keep the bare key meaning true, and reject any other value.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2514
--mount ...,readonly=false(orro=0) produced a read-only mount, becauseParser.mountignored the value ofreadonly/ro. This change acceptstrue/false/1/0likedocker --mountand keeps the bare key meaningtrue. Any other value is rejected with an error.The value check sits in the
readonly/rocase of the directive switch. That removes theskipValueflag; every other key still requireskey=value. docs/volumes.md is updated.Test:
ParserTest.testMountReadonlyValuecovers the bare keys,=true/=1,=false/=0, and an invalid value. On main it fails forreadonly=false,ro=0and the invalid value. With this change,swift test --filter ParserTestpasses all 163 tests (macOS 26.6.1, Swift 6.3.3).This change was drafted with Claude Code (claude-opus-5-5); the test results above are from the runs described.