fix(worker): compose staged source paths safely
This commit is contained in:
@@ -119,9 +119,9 @@ function Get-StagedSnapshotInspection {
|
||||
$manifestPath = Join-Path $Root ($ContextManifestRelativePath.Replace("/", "\"))
|
||||
$dockerfilePath = Join-Path $Root ($DockerfileRelativePath.Replace("/", "\"))
|
||||
$requiredSourceFiles = @(
|
||||
Join-Path $sourceRoot "__init__.py",
|
||||
Join-Path $sourceRoot "observatory\m49_worker_container_main.py",
|
||||
Join-Path $sourceRoot "observatory\m49_worker_service.py"
|
||||
(Join-Path $sourceRoot "__init__.py")
|
||||
(Join-Path $sourceRoot "observatory\m49_worker_container_main.py")
|
||||
(Join-Path $sourceRoot "observatory\m49_worker_service.py")
|
||||
)
|
||||
foreach ($requiredPath in $requiredSourceFiles + @($manifestPath, $dockerfilePath)) {
|
||||
if (-not (Test-Path -LiteralPath $requiredPath -PathType Leaf)) {
|
||||
|
||||
Reference in New Issue
Block a user