Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: better collision error message (copy/pastable filenames) #206

Conversation

TyberiusPrime
Copy link
Contributor

Tiny quality of life improvement. Had a package where there where 8 init.py files colliding, and this way you can copy/paste the filenames for a quick md5sum.

Now looks like

       > __main__.FileCollisionError: Two or more packages are trying to provide the same file with different contents
       >
       >         Files: /nix/store/6qcjwvh8kx5bc10sbqkvsndjlqi3j2sw-azureml-core-1.57.0.post3/lib/python3.9/site-packages/azureml/__init__.py /nix/store/3dk98flclhm6fhpvz31bpsqrc4is7shz-azureml-train-automl-client-1.57.0/lib/python3.9/site-packages/azureml/__init__.py /nix/store/vvv01nh1v1s93z596pdwfhwsx7s1khrv-azureml-train-core-1.57.0/lib/python3.9/site-packages/azureml/__init__.py /nix/store/pnf0vb2a2gdsplsn77l8agqzz6mbki47-azureml-pipeline-core-1.57.0/lib/python3.9/site-packages/azureml/__init__.py /nix/store/46qn2zzp4crx0vk9plhz7r1sf0lrwg0l-azureml-pipeline-steps-1.57.0/lib/python3.9/site-packages/azureml/__init__.py /nix/store/nkvfibwdm3jdbm3f5gd4wgjplsn3d2qi-azureml-automl-core-1.57.0/lib/python3.9/site-packages/azureml/__init__.py /nix/store/mp1sxs07hr2i7knxc80lab5v4hka72wa-azureml-telemetry-1.57.0/lib/python3.9/site-packages/azureml/__init__.py /nix/store/4v6cjl5a32s5v8gcw50cwmsm7arwgx60-azureml-train-restclients-hyperdrive-1.57.0/lib/python3.9/site-packages/azureml/__init__.py

used to look like

> __main__.FileCollisionError: Two or more packages are trying to provide the same file with different contents
       >
       >         Files: [PosixPath('/nix/store/6qcjwvh8kx5bc10sbqkvsndjlqi3j2sw-azureml-core-1.57.0.post3/lib/python3.9/site-packages/azureml/__init__.py'), PosixPath('/nix/store/3dk98flclhm6fhpvz31bpsqrc4is7shz-azureml-train-automl-client-1.57.0/lib/python3.9/site-packages/azureml/__init__.py'), PosixPath('/nix/store/vvv01nh1v1s93z596pdwfhwsx7s1khrv-azureml-train-core-1.57.0/lib/python3.9/site-packages/azureml/__init__.py'), PosixPath('/nix/store/pnf0vb2a2gdsplsn77l8agqzz6mbki47-azureml-pipeline-core-1.57.0/lib/python3.9/site-packages/azureml/__init__.py'), PosixPath('/nix/store/46qn2zzp4crx0vk9plhz7r1sf0lrwg0l-azureml-pipeline-steps-1.57.0/lib/python3.9/site-packages/azureml/__init__.py'), PosixPath('/nix/store/nkvfibwdm3jdbm3f5gd4wgjplsn3d2qi-azureml-automl-core-1.57.0/lib/python3.9/site-packages/azureml/__init__.py'), PosixPath('/nix/store/mp1sxs07hr2i7knxc80lab5v4hka72wa-azureml-telemetry-1.57.0/lib/python3.9/site-packages/azureml/__init__.py'), PosixPath('/nix/store/4v6cjl5a32s5v8gcw50cwmsm7arwgx60-azureml-train-restclients-hyperdrive-1.57.0/lib/python3.9/site-packages/azureml/__init__.py')

@adisbladis adisbladis merged commit e239399 into pyproject-nix:master Dec 7, 2024
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants