Skip to content

Commit 76e3eb5

Browse files
committed
fix: homelabTestHelm and homelabHelmBuild accept homelab source directly
Same fix as renovate test - these functions were called with the already-extracted homelab directory but internally called getHomelabSource which tried to access packages/homelab (failing with ENOENT). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b4479aa commit 76e3eb5

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

.dagger/src/homelab-index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,24 +219,22 @@ export async function ciHomelab(
219219

220220
/**
221221
* Build all Helm charts.
222-
* @param monoRepoSource The monorepo root source directory
222+
* @param homelabSource The homelab source directory (packages/homelab)
223223
*/
224224
export function homelabHelmBuild(
225-
monoRepoSource: Directory,
225+
homelabSource: Directory,
226226
version: string,
227227
): Directory {
228-
const homelabSource = getHomelabSource(monoRepoSource);
229228
return buildAllCharts(homelabSource, version);
230229
}
231230

232231
/**
233232
* Test Helm chart structure, linting, and template rendering.
234-
* @param monoRepoSource The monorepo root source directory
233+
* @param homelabSource The homelab source directory (packages/homelab)
235234
*/
236235
export async function homelabTestHelm(
237-
monoRepoSource: Directory,
236+
homelabSource: Directory,
238237
): Promise<string> {
239-
const homelabSource = getHomelabSource(monoRepoSource);
240238
const testVersion = "0.1.0-test";
241239
const helmDist = buildAllCharts(homelabSource, testVersion);
242240
const helmBinary = dag

.dagger/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export class Monorepo {
345345

346346
@func()
347347
homelabHelmBuild(source: Directory, version: string): Directory {
348-
return homelabHelmBuildFn(source, version);
348+
return homelabHelmBuildFn(source.directory("packages/homelab"), version);
349349
}
350350

351351
@func()
@@ -355,7 +355,7 @@ export class Monorepo {
355355

356356
@func()
357357
async homelabTestHelm(source: Directory): Promise<string> {
358-
return homelabTestHelmFn(source);
358+
return homelabTestHelmFn(source.directory("packages/homelab"));
359359
}
360360

361361
@func()

0 commit comments

Comments
 (0)