Skip to content

Commit

Permalink
fix: drop more csflePath references
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Jun 2, 2022
1 parent d6c510c commit 78a16fa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .evergreen/install-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ else
make -j8 NO_EXPAT=1)
fi

npm cache clear --force || true # Try to work around `Cannot read property 'pickAlgorithm' of null` errors in CI
npm i -g [email protected]
fi

Expand Down
4 changes: 2 additions & 2 deletions packages/arg-parser/src/arg-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ const MAPPINGS: {
awsSessionToken: (i, v) => setAWSKMS(i, 'sessionToken', v),
awsIamSessionToken: (i, v) => setAuthMechProp(i, 'AWS_SESSION_TOKEN', v),
// @ts-expect-error AutoEncryption options have been renamed, drop the (outer) csflePath call after the next release
csfleLibraryPath: (i, v) => setAutoEncryptExtra(setAutoEncryptExtra(i, 'cryptSharedLibPath', v), 'csflePath', v),
csfleLibraryPath: (i, v) => setAutoEncryptExtra(i, 'cryptSharedLibPath', v),
// @ts-expect-error AutoEncryption options have been renamed, drop the (outer) csflePath call after the next release
cryptSharedLibPath: (i, v) => setAutoEncryptExtra(setAutoEncryptExtra(i, 'cryptSharedLibPath', v), 'csflePath', v),
cryptSharedLibPath: (i, v) => setAutoEncryptExtra(i, 'cryptSharedLibPath', v),
gssapiServiceName: (i, v) => setAuthMechProp(i, 'SERVICE_NAME', v),
sspiRealmOverride: (i, v) => setAuthMechProp(i, 'SERVICE_REALM', v),
sspiHostnameCanonicalization:
Expand Down
1 change: 1 addition & 0 deletions packages/cli-repl/src/cli-repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ class CliRepl implements MongoshIOProvider {
if (!this.getCryptLibraryPaths) {
throw new MongoshInternalError('This instance of mongosh is not configured for in-use encryption');
}
// @ts-expect-error AutoEncryption options have been renamed, wait for the next driver release
return (this.cachedCryptLibraryPath ??= this.getCryptLibraryPaths(this.bus));
}

Expand Down
2 changes: 0 additions & 2 deletions packages/cli-repl/src/crypt-library-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const SHARED_LIBRARY_SUFFIX =

export interface CryptLibraryPathResult {
cryptSharedLibPath?: string;
csflePath?: string; // Alias, currently still used by the driver
expectedVersion?: { version: bigint; versionStr: string };
}

Expand Down Expand Up @@ -53,7 +52,6 @@ export async function getCryptLibraryPaths(
const version = getCryptSharedLibraryVersion(libraryCandidate);
const result = {
cryptSharedLibPath: libraryCandidate,
csflePath: libraryCandidate,
expectedVersion: version
};
bus.emit('mongosh:crypt-library-load-found', result);
Expand Down

0 comments on commit 78a16fa

Please sign in to comment.