Skip to content

Commit eac1865

Browse files
committed
fix: renovate test import paths for container compatibility
Revert cdk8s import to workspace alias @homelab/cdk8s/src/versions and fix dagger versions import to match the container mount path. The previous relative paths worked locally but not in the Dagger container. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1f03293 commit eac1865

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.dagger/test/homelab-test-renovate-regex.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env -S bun
22

33
import { z } from "zod";
4-
import cdk8sVersions from "../../packages/homelab/src/cdk8s/src/versions";
5-
import daggerVersions from "../src/lib-versions.ts";
4+
import cdk8sVersions from "@homelab/cdk8s/src/versions";
5+
import daggerVersions from "../src/lib/versions.ts";
66

77
/**
88
* Test script to validate that versions.ts files have properly formatted
@@ -176,9 +176,9 @@ async function parseVersionsFile(
176176

177177
function getVersionsObject(filePath: string): Record<string, string> {
178178
// Use static imports to get the versions object
179-
if (filePath === "packages/homelab/src/cdk8s/src/versions.ts") {
179+
if (filePath === "src/cdk8s/src/versions.ts") {
180180
return cdk8sVersions;
181-
} else if (filePath === ".dagger/src/lib-versions.ts") {
181+
} else if (filePath === ".dagger/src/versions.ts") {
182182
return daggerVersions;
183183
} else {
184184
throw new Error(`Unknown versions file: ${filePath}`);
@@ -200,7 +200,7 @@ async function main() {
200200
const renovateRegexes = await getRenovateRegexes();
201201
console.log(`📋 Using ${String(renovateRegexes.length)} regex pattern(s)`);
202202

203-
const versionFiles = ["packages/homelab/src/cdk8s/src/versions.ts", ".dagger/src/lib-versions.ts"];
203+
const versionFiles = ["src/cdk8s/src/versions.ts", ".dagger/src/versions.ts"];
204204

205205
let totalErrors = 0;
206206
let totalWarnings = 0;

0 commit comments

Comments
 (0)