Skip to content

fix(transform): honor ignoreParseError in ssh and ulimits parsers - #928

Merged
ndeloof merged 1 commit into
compose-spec:mainfrom
glours:fix/transform-ignore-parse-error-ssh-ulimits
Sep 10, 2026
Merged

ndeloof merged 1 commit into
compose-spec:mainfrom
glours:fix/transform-ignore-parse-error-ssh-ulimits

Conversation

@glours

@glours glours commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

ignoreParseError was threaded into every transform.Canonical parser's signature to satisfy the shared transformFunc type, but only ports and volume mounts actually used it; ssh and ulimits kept a no-op _ bool.

A short-form value left unresolved on purpose (SkipInterpolation, e.g. docker compose publish's raw secret-scanning pass) crashed the loader outright instead of degrading gracefully like its siblings.

Also fixes a copy-pasted "for external" error message in ulimits.

Fixes a loader crash in docker compose publish's raw secret-scanning pass (unresolved ${VAR} in short-form ssh/ulimits), helping unblock docker/compose#13672

ignoreParseError was threaded into every transform.Canonical parser's
signature to satisfy the shared transformFunc type, but only ports and
volume mounts actually used it; ssh and ulimits kept a no-op `_ bool`.

A short-form value left unresolved on purpose (SkipInterpolation, e.g.
docker compose publish's raw secret-scanning pass) crashed the loader
outright instead of degrading gracefully like its siblings.

Also fixes a copy-pasted "for external" error message in ulimits.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
@glours
glours requested a review from ndeloof as a code owner September 10, 2026 12:56
@glours glours self-assigned this Sep 10, 2026
@ndeloof
ndeloof merged commit 0e17c64 into compose-spec:main Sep 10, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants