Refactor tmpfsMounts() to process tmpfs path correctly - #2103
Conversation
jglogan
left a comment
There was a problem hiding this comment.
@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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
compute the filepath first and guard to ensure that
isAbsoluteis 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.
Type of Change
Motivation and Context
Fixes #2094 : tmpfs works as stated in issue with tests added
Testing