You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", fmt.Errorf("unable to resolve '%s' to a commit SHA", revision)
711
720
}
712
721
713
-
// resolveSemverRevision is a part of the lsRemote method workflow.
714
-
// When the user correctly configures the Git repository revision, and that revision is a valid semver constraint, we
715
-
// use this logic path rather than the standard lsRemote revision resolution loop.
716
-
// Some examples to illustrate the actual behavior - if the revision is:
717
-
// * "v0.1.2"/"0.1.2" or "v0.1"/"0.1", then this is not a constraint, it's a pinned version - so we fall back to the standard tag matching in the lsRemote loop.
718
-
// * "v0.1.*"/"0.1.*", and there's a tag matching that constraint, then we find the latest matching version and return its commit hash.
719
-
// * "v0.1.*"/"0.1.*", and there is *no* tag matching that constraint, then we fall back to the standard tag matching in the lsRemote loop.
720
-
// * "custom-tag", only the lsRemote loop will run - because that revision is an invalid semver;
721
-
// * "master-branch", only the lsRemote loop will run because that revision is an invalid semver;
0 commit comments