Prevent tagging existing remote versions.

This commit is contained in:
Marcin Bilski
2021-12-22 15:35:09 +01:00
parent e08d238243
commit 52d4a68d86
3 changed files with 21 additions and 10 deletions

View File

@@ -144,10 +144,10 @@ func isVendoredPackage(name string) bool {
func (g *gitVCS) Zip(ctx context.Context, version Version) (io.ReadCloser, error) {
dirName := g.module + "@" + string(version)
return g.zipUnder(ctx, version, dirName)
return g.zipAs(ctx, version, dirName)
}
func (g *gitVCS) zipUnder(ctx context.Context, version Version, dirName string) (io.ReadCloser, error) {
func (g *gitVCS) zipAs(ctx context.Context, version Version, dirName string) (io.ReadCloser, error) {
g.log("gitVCS.Zip", "module", g.module, "version", version)
ci, err := g.commit(ctx, version)
if err != nil {