Skip to content

Commit 69f1542

Browse files
committed
fix: send relative filepaths to CLI
1 parent b0751a9 commit 69f1542

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,12 @@ const githubValidator: Validator = async (filepath) => {
171171
};
172172

173173
const codeownershipValidator: Validator = async (filepath) => {
174+
// bin/codeownership currenlty wants relative paths
175+
const relativePath = relative(process.cwd(), filepath);
176+
174177
const output = runCommand(
175178
process.cwd(),
176-
`bin/codeownership for_file "${filepath}" --json`,
179+
`bin/codeownership for_file "${relativePath}" --json`,
177180
);
178181

179182
try {

0 commit comments

Comments
 (0)