astral-sh / packse

Python packaging scenarios
Apache License 2.0
99 stars 10 forks source link

fetch: don't do a shallow clone #134

Closed BurntSushi closed 6 months ago

BurntSushi commented 6 months ago

This fixes a test failure on current main where packse fetch --ref 0.1.0 was failing. Namely, packse fetch does a shallow clone, which means not all tags are available. Since 0.2.0 has been tagged, the shallow clone only has the 0.2.0 tag available.

It's not clear what the right fix is here. I assume it is non-ideal to have a deep clone here, but it's also not clear to me whether we want packse fetch --ref 0.1.0 to always work. If so, then I think we probably need a deep clone?

We can adjust this of course in the future, but I made this change to unblock CI.