diff --git a/.github/workflows/scip-snapshot.yml b/.github/workflows/scip-snapshot.yml index fd94d42ef..4c3f34f67 100644 --- a/.github/workflows/scip-snapshot.yml +++ b/.github/workflows/scip-snapshot.yml @@ -10,7 +10,10 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] steps: - uses: actions/checkout@v3 - name: Install asdf. diff --git a/packages/pyright-internal/src/analyzer/importResolver.ts b/packages/pyright-internal/src/analyzer/importResolver.ts index 269407dd5..0b9e4408b 100644 --- a/packages/pyright-internal/src/analyzer/importResolver.ts +++ b/packages/pyright-internal/src/analyzer/importResolver.ts @@ -1284,6 +1284,13 @@ export class ImportResolver { filePath: string, stripTopContainerDir = false ): ModuleNameInfoFromPath | undefined { + /** + * TODO(https://github.com/sourcegraph/scip-python/issues/91) + * Both paths are casted to lowercase to make the comparison case-insensitive. This has been fixed upstream and should be removed on merge. + */ + containerPath = containerPath.toLowerCase(); + filePath = filePath.toLowerCase(); + containerPath = ensureTrailingDirectorySeparator(containerPath); let filePathWithoutExtension = stripFileExtension(filePath);