Merge pull request #13023 from appwrite/fix/extract-depends-on-source

fix(deployment): declare the extract artifact's dependency on source
This commit is contained in:
Luke B. Silver authored and GitHub committed 2026-07-27 21:45:43 +01:00
commit eda3fb043b
1 file changed
+2 -2
@@ -156,7 +156,7 @@ readonly class Orchestrator extends Backend
$subdir = \trim($source['subdir'] ?? '', '/');
$sourceArtifacts = [
new DownloadArtifact(id: 'source', in: $source['url'], out: 'source.tar.gz'),
new UnarchiveArtifact(id: 'extract', in: 'source.tar.gz', out: 'source', subdir: $subdir !== '' ? $subdir : null, strip: true),
new UnarchiveArtifact(id: 'extract', in: 'source.tar.gz', out: 'source', subdir: $subdir !== '' ? $subdir : null, strip: true, depends: 'source'),
// Appwrite never sees the remote source (the sidecar fetches it),
// so unlike the uploaded-tarball path it can't size it. Stat the
// downloaded archive so the orchestrator reports its byte size in
@@ -176,7 +176,7 @@ readonly class Orchestrator extends Backend
]);
$sourceArtifacts = [
new DownloadArtifact(id: 'source', in: $sourceUrl, out: 'source.tar.gz'),
new UnarchiveArtifact(id: 'extract', in: 'source.tar.gz', out: 'source'),
new UnarchiveArtifact(id: 'extract', in: 'source.tar.gz', out: 'source', depends: 'source'),
];
}