jtec / prx

MIT License
8 stars 6 forks source link

git commit ID in CSV header is not prx commit ID if imported into another project #96

Open jtec opened 2 months ago

jtec commented 2 months ago

This

https://github.com/jtec/prx/blob/0101d7e1a6b9db07061517bf0fcfbff67348e2c5/src/prx/main.py#L176

only works if prx has been cloned with git, not if it has been imported e.g. with poetry as

[tool.poetry.dev-dependencies]
...
prx = { git = "https://github.com/jtec/prx.git", rev = "ee12f3f5e6e9e2366868e06890df4c398a3dbcb7" }

in which case we will see a commit ID of the importing project.