Skip to content

Refactor tmpfsMounts() to process tmpfs path correctly - #2103

Open
LevelVoid wants to merge 4 commits into
apple:mainfrom
LevelVoid:fix-tmpfs
Open

Refactor tmpfsMounts() to process tmpfs path correctly#2103
LevelVoid wants to merge 4 commits into
apple:mainfrom
LevelVoid:fix-tmpfs

Conversation

@LevelVoid

@LevelVoid LevelVoid commented Aug 8, 2026

Copy link
Copy Markdown

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Fixes #2094 : tmpfs works as stated in issue with tests added

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@jglogan jglogan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LevelVoid Don't forget the absolute path test, see comment.

Also, you'll need to configure your account for verified commit signatures or we can't merge, see: https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#about-commit-signature-verification.

Thank you!

throw ContainerizationError(.invalidArgument, message: "mount destination cannot be empty")
}

let normalizedDest = FilePath(destination).lexicallyNormalized().string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compute the filepath first and guard to ensure that isAbsolute is true.
Then do the normalization and continue.

Add a test to ensure non-absolute destinations fail.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compute the filepath first and guard to ensure that isAbsolute is true. Then do the normalization and continue.

Add a test to ensure non-absolute destinations fail.

Got it, i will do that and push after configuring my account.

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.

[Bug]: --tmpfs option for container {create|run} does not split mount options.

2 participants