Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Conversation

@m3at
Copy link

@m3at m3at commented Dec 13, 2024

cat /etc/os-release is not always available, the prisma client broke when trying to deploy in an Ubuntu 22.04 VM. This uses the standard library's platform instead.
Also fix the SSL version check for the same reason.

Checklist

  • Unit tests for the changes exist
  • Tests pass without significant drop in coverage
  • Documentation reflects changes where applicable
  • Test snapshots have been updated if applicable

Agreement

By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice.

m3at and others added 5 commits December 13, 2024 19:13
`cat /etc/os-release` is not always available, the prisma client broke when trying to deploy in an Ubuntu 22.04 VM. This uses the standard library's `platform` instead.
return distro_id, distro_id_like
if hasattr(_platform, 'freedesktop_os_release'):
# For python >= 3.10
distro = _platform.freedesktop_os_release()

This comment was marked as outdated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant