Commit 4401ff5
authored
Fix hashlib.md5 call for FIPS-enabled builds (#3228)
FIPS errors with the following message:
```
File "/usr/lib/python3.11/site-packages/pdm/cli/commands/run.py", line 167, in _get_script_env
venv_name = hashlib.md5(os.path.realpath(script_file).encode("utf-8")).hexdigest()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported
```
Since the hash isn't use for cryptographic use we indicate that md5 can be safely used1 parent ceb387b commit 4401ff5
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
| |||
0 commit comments