Skip to content

Commit 8ebd7df

Browse files
committed
fix(showcase): use glob COPY package*.json ./ to bust poisoned Depot cache
CI failed on the 16 integrations whose explicit two-file COPY `COPY package.json package-lock.json ./` hit a poisoned Depot remote BuildKit cache entry: the cached layer reported CACHED but only contained `package.json`, so the subsequent `npm ci` failed with "command can only install with an existing package-lock.json". Depot's cache had a layer indexed against the prior `COPY package.json ./` instruction; the new two-file instruction was matching it by some internal cache-key collision. Two of 18 integrations (langgraph-python, langgraph-typescript) passed only because they had a fully-cached `RUN npm ci` layer from a sibling build that short-circuited the broken COPY. The glob form `COPY package*.json ./` produces an instruction string that has never appeared in Depot's cache, so the layer is computed fresh against the actual build context and includes both files. It also reads cleaner than the explicit two-file enumeration. No-Op when no cache poisoning is present -- the glob expands to exactly package.json and package-lock.json on every integration (verified locally; only those two files match per directory).
1 parent 604ea65 commit 8ebd7df

18 files changed

Lines changed: 18 additions & 18 deletions

File tree

showcase/integrations/ag2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Cache bust: 2026-04-07 smoke route
33
FROM node:22-slim AS frontend
44
WORKDIR /app
5-
COPY package.json package-lock.json ./
5+
COPY package*.json ./
66
RUN npm ci --legacy-peer-deps
77
COPY . .
88
RUN npm run build

showcase/integrations/agno/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package.json package-lock.json ./
4+
COPY package*.json ./
55
RUN npm ci --legacy-peer-deps
66
COPY . .
77
RUN npm run build

showcase/integrations/built-in-agent/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Stage 1: Build Next.js
88
FROM node:22-slim AS builder
99
WORKDIR /app
10-
COPY package.json package-lock.json ./
10+
COPY package*.json ./
1111
RUN npm ci --legacy-peer-deps
1212
COPY . .
1313
RUN npx next build

showcase/integrations/claude-sdk-python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package.json package-lock.json ./
4+
COPY package*.json ./
55
RUN npm ci --legacy-peer-deps
66
COPY . .
77
RUN npm run build

showcase/integrations/claude-sdk-typescript/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build Next.js frontend + compile TypeScript agent server
22
FROM node:22-slim AS builder
33
WORKDIR /app
4-
COPY package.json package-lock.json ./
4+
COPY package*.json ./
55
RUN npm ci --legacy-peer-deps
66
COPY . .
77
# Build Next.js frontend

showcase/integrations/crewai-crews/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package.json package-lock.json ./
4+
COPY package*.json ./
55
RUN npm ci --legacy-peer-deps
66
COPY . .
77
RUN npm run build

showcase/integrations/google-adk/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package.json package-lock.json ./
4+
COPY package*.json ./
55
RUN npm ci --legacy-peer-deps
66
COPY . .
77
RUN npm run build

showcase/integrations/langgraph-fastapi/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package.json package-lock.json ./
4+
COPY package*.json ./
55
RUN npm ci --legacy-peer-deps
66
COPY . .
77
RUN npm run build

showcase/integrations/langgraph-python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package.json package-lock.json ./
4+
COPY package*.json ./
55
RUN npm ci --legacy-peer-deps
66
COPY . .
77
RUN npm run build

showcase/integrations/langgraph-typescript/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stage 1: Build Next.js frontend
22
FROM node:22-slim AS frontend
33
WORKDIR /app
4-
COPY package.json package-lock.json ./
4+
COPY package*.json ./
55
RUN npm ci --legacy-peer-deps
66
COPY . .
77
RUN npx next build

0 commit comments

Comments
 (0)