Skip to content

Commit 16bb66f

Browse files
committed
fix(dagger): install jq directly in code-review container
The published dagger-utils npm package has a stale apt cache that doesn't include jq. Install it explicitly in the code-review container until dagger-utils is republished. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ff2c22e commit 16bb66f

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.dagger/src/code-review.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,10 @@ jq -n \\
259259
'{shouldSkip: $shouldSkip, maxTurns: $maxTurns, complexity: $complexity, isRereview: $isRereview, previousState: $previousState, previousWasApproved: $previousWasApproved, totalChanges: $totalChanges, changedFiles: $changedFiles}'
260260
`;
261261

262-
// Run analysis in a container
262+
// Run analysis in a container (ensure jq is available)
263263
const container = getGitHubContainer()
264+
.withExec(["apt-get", "update"])
265+
.withExec(["apt-get", "install", "-y", "jq"])
264266
.withSecretVariable("GH_TOKEN", githubToken)
265267
.withMountedDirectory("/workspace", source)
266268
.withWorkdir("/workspace")

packages/dagger-utils/src/containers/system.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export function getSystemContainer(
2222
.container(platform ? { platform } : undefined)
2323
.from(`ubuntu:${ubuntuVersion}`)
2424
// Cache APT packages
25-
.withMountedCache("/var/cache/apt", dag.cacheVolume(`apt-cache-v2-${platform ?? "default"}`))
26-
.withMountedCache("/var/lib/apt", dag.cacheVolume(`apt-lib-v2-${platform ?? "default"}`))
25+
.withMountedCache("/var/cache/apt", dag.cacheVolume(`apt-cache-${platform ?? "default"}`))
26+
.withMountedCache("/var/lib/apt", dag.cacheVolume(`apt-lib-${platform ?? "default"}`))
2727
.withExec(["apt-get", "update"])
2828
.withExec(["apt-get", "install", "-y", "gpg", "wget", "curl", "git", "build-essential", "python3", "jq"])
2929
);

0 commit comments

Comments
 (0)