Skip to content

Commit

Permalink
feat(get-platform): search for openssl in LD_LIBRARY_PATH if provided
Browse files Browse the repository at this point in the history
Supersedes: prisma#18012
  • Loading branch information
Gerschtli committed Jul 25, 2023
1 parent 8df32d8 commit 971d97b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/get-platform/src/getPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ type ComputeLibSSLSpecificPathsParams = {
}

export function computeLibSSLSpecificPaths(args: ComputeLibSSLSpecificPathsParams) {
if (process.env.LD_LIBRARY_PATH) {
debug(`Found 'LD_LIBRARY_PATH' specified as env-var, ignoring platform specific lib-dir paths...`)
return process.env.LD_LIBRARY_PATH.split(':')
}

return match(args)
.with({ familyDistro: 'musl' }, () => {
/* Linux Alpine */
Expand Down

0 comments on commit 971d97b

Please sign in to comment.