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

fetch: don't do a shallow clone #134

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

BurntSushi
Copy link
Member

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.

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.
@BurntSushi BurntSushi requested a review from zanieb February 28, 2024 13:23
@BurntSushi BurntSushi merged commit c5b8ccf into astral-sh:main Feb 28, 2024
5 checks passed
@BurntSushi BurntSushi deleted the ag/fix-packse-fetch-test branch February 28, 2024 13:31
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.

1 participant