-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Octokit says that a tag does not exist when it does, in fact #1933
Comments
@astrohart please note that the
|
@shiftkey Well, golly gee wilikers! But the docs at here clearly show the line
The third parameter above is called I am going to submit a pull request with some more fault-tolerant code. |
@shiftkey, thanks for pointing that out, and you're correct. This code works:
However, the extra |
Created pull request #1934 to fix this, by adding code to the ApiUrls.Reference method's second overload to remove occurrences of the string |
I think we did this because we envisioned the typical use case would provide just the local ref name, rather than the fully-qualified namespace for the ref. But we can re-evaluate that decision in #1934 and see if it's worth a breaking change. |
@shiftkey The change I propose is pretty fault-tolerant. |
@shiftkey You've help me so much with your comments above. Thank you. |
Using LINQpad and OctoKit, for my testing repository, I have utilized the GitHub website to add a tag called 'v0.7.3' for testing purposes. The code
produces the result
Then, when I do
Which should work, since the
if
branch does indeed let the loop move to theawait client.Git.Reference.Delete
line if I single-step, since tag matching the criteria does indeed exist (as has been shown above). However, upon callingawait client.Git.Reference.Delete(...)
on a tag that exists* I get theApiValidationException
shownThis counter-intuitive. Why is the API telling me my reference does not exist when it clearly does?
To reproduce:
The text was updated successfully, but these errors were encountered: