Skip to content

Commit 78a16fa

Browse files
committed
fix: drop more csflePath references
1 parent d6c510c commit 78a16fa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.evergreen/install-node.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ else
3131
make -j8 NO_EXPAT=1)
3232
fi
3333

34+
npm cache clear --force || true # Try to work around `Cannot read property 'pickAlgorithm' of null` errors in CI
3435
3536
fi
3637

packages/arg-parser/src/arg-mapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ const MAPPINGS: {
106106
awsSessionToken: (i, v) => setAWSKMS(i, 'sessionToken', v),
107107
awsIamSessionToken: (i, v) => setAuthMechProp(i, 'AWS_SESSION_TOKEN', v),
108108
// @ts-expect-error AutoEncryption options have been renamed, drop the (outer) csflePath call after the next release
109-
csfleLibraryPath: (i, v) => setAutoEncryptExtra(setAutoEncryptExtra(i, 'cryptSharedLibPath', v), 'csflePath', v),
109+
csfleLibraryPath: (i, v) => setAutoEncryptExtra(i, 'cryptSharedLibPath', v),
110110
// @ts-expect-error AutoEncryption options have been renamed, drop the (outer) csflePath call after the next release
111-
cryptSharedLibPath: (i, v) => setAutoEncryptExtra(setAutoEncryptExtra(i, 'cryptSharedLibPath', v), 'csflePath', v),
111+
cryptSharedLibPath: (i, v) => setAutoEncryptExtra(i, 'cryptSharedLibPath', v),
112112
gssapiServiceName: (i, v) => setAuthMechProp(i, 'SERVICE_NAME', v),
113113
sspiRealmOverride: (i, v) => setAuthMechProp(i, 'SERVICE_REALM', v),
114114
sspiHostnameCanonicalization:

packages/cli-repl/src/cli-repl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ class CliRepl implements MongoshIOProvider {
656656
if (!this.getCryptLibraryPaths) {
657657
throw new MongoshInternalError('This instance of mongosh is not configured for in-use encryption');
658658
}
659+
// @ts-expect-error AutoEncryption options have been renamed, wait for the next driver release
659660
return (this.cachedCryptLibraryPath ??= this.getCryptLibraryPaths(this.bus));
660661
}
661662

packages/cli-repl/src/crypt-library-paths.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export const SHARED_LIBRARY_SUFFIX =
99

1010
export interface CryptLibraryPathResult {
1111
cryptSharedLibPath?: string;
12-
csflePath?: string; // Alias, currently still used by the driver
1312
expectedVersion?: { version: bigint; versionStr: string };
1413
}
1514

@@ -53,7 +52,6 @@ export async function getCryptLibraryPaths(
5352
const version = getCryptSharedLibraryVersion(libraryCandidate);
5453
const result = {
5554
cryptSharedLibPath: libraryCandidate,
56-
csflePath: libraryCandidate,
5755
expectedVersion: version
5856
};
5957
bus.emit('mongosh:crypt-library-load-found', result);

0 commit comments

Comments
 (0)