diff --git a/src/utils/__tests__/paths.spec.ts b/src/utils/__tests__/paths.spec.ts index 0d598e2bf83..288e3df5562 100644 --- a/src/utils/__tests__/paths.spec.ts +++ b/src/utils/__tests__/paths.spec.ts @@ -38,7 +38,12 @@ describe('paths', () => { darwin: '%HOME%/Library/State/rancher-desktop/driver/', }, integration: { - win32: Error(), + // The integration code paths do not currently support error handling + // and returning an error causes exceptions on Windows. This needs to + // be reworked to handle no location on Windows. See that paths.ts + // file for more detail. + // win32: Error(), + win32: '/usr/local/bin', darwin: '/usr/local/bin', }, }; diff --git a/src/utils/paths.ts b/src/utils/paths.ts index 98f25268516..be409df034a 100644 --- a/src/utils/paths.ts +++ b/src/utils/paths.ts @@ -80,7 +80,12 @@ export class Win32Paths implements Paths { } get integration(): string { - throw new Error('integration path not available for Windows'); + return '/usr/local/bin'; + // The current code paths on Windows fail if no location is returned to watch. + // Before we can throw an exception, the code paths that use the returned string + // need to be refactored to handle an error. The current location being returned + // is the location that has been in use. + // throw new Error('integration path not available for Windows'); } }