mirror of
https://github.com/apple/container.git
synced 2026-09-24 08:35:36 +00:00
Fix relative path resolution in entrypoint (#987)
- Fixes #962. - Adds test to exercise apple/containerization#473. - Updates containerization to 0.20.1. Signed-off-by: ParkSeongGeun <phd0801@naver.com>
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"originHash" : "538f97f4c9123825536afb15abcaa4d9d865563e402bcb7fd26be69f55461c1d",
|
||||
"originHash" : "b11a80bed0b568e35f4b538956344d483125e344c4931c362a2a31a2f7a8565b",
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "async-http-client",
|
||||
@@ -16,7 +16,7 @@
|
||||
"location" : "https://github.com/apple/containerization.git",
|
||||
"state" : {
|
||||
"revision" : "452f354bac52ecbfe4a40b729880435a070c5a29",
|
||||
"version" : "0.20.0"
|
||||
"version" : "0.20.1"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import PackageDescription
|
||||
let releaseVersion = ProcessInfo.processInfo.environment["RELEASE_VERSION"] ?? "0.0.0"
|
||||
let gitCommit = ProcessInfo.processInfo.environment["GIT_COMMIT"] ?? "unspecified"
|
||||
let builderShimVersion = "0.7.0"
|
||||
let scVersion = "0.20.0"
|
||||
let scVersion = "0.20.1"
|
||||
|
||||
let package = Package(
|
||||
name: "container",
|
||||
|
||||
@@ -845,4 +845,22 @@ struct ParserTest {
|
||||
return error.description.contains("invalid property format")
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Relative Path Passthrough Tests
|
||||
|
||||
@Test
|
||||
func testProcessEntrypointRelativePathPassthrough() throws {
|
||||
let processFlags = try Flags.Process.parse(["--cwd", "/bin"])
|
||||
let managementFlags = try Flags.Management.parse(["--entrypoint", "./uname"])
|
||||
|
||||
let result = try Parser.process(
|
||||
arguments: [],
|
||||
processFlags: processFlags,
|
||||
managementFlags: managementFlags,
|
||||
config: nil
|
||||
)
|
||||
|
||||
#expect(result.executable == "./uname")
|
||||
#expect(result.workingDirectory == "/bin")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user