Skip to content

Commit d9566df

Browse files
authored
fix(internal/librarian): delete tag command (#6085)
Delete unused librarian tag command.
1 parent 72d8604 commit d9566df

4 files changed

Lines changed: 7 additions & 277 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Run tests and check coverage
4343
# TODO(https://github.com/googleapis/librarian/issues/4664): raise to 80.
4444
run: |
45-
go run ./tool/cmd/coverage -target=79 \
45+
go run ./tool/cmd/coverage -target=78 \
4646
$(go list ./... | grep -v -E 'github.com/googleapis/librarian$|internal/librarian/(dart|golang|java|nodejs|python|rust|swift)|internal/sidekick|internal/legacylibrarian')
4747
create-issue-on-failure:
4848
runs-on: ubuntu-24.04

internal/librarian/bump.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,3 +417,9 @@ func legacyRustBumpLibrary(ctx context.Context, cfg *config.Config, lib *config.
417417
return fmt.Errorf("%q should not be using legacyRustBumpLibrary", cfg.Language)
418418
}
419419
}
420+
421+
// formatTagName computes the name of the tag expected to be applied to the
422+
// commit that released the given library.
423+
func formatTagName(tagFormat string, lib *config.Library) string {
424+
return strings.NewReplacer("{name}", lib.Name, "{version}", lib.Version).Replace(tagFormat)
425+
}

internal/librarian/tag.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"errors"
2020
"fmt"
2121
"regexp"
22-
"strings"
2322

2423
"github.com/googleapis/librarian/internal/command"
2524
"github.com/googleapis/librarian/internal/config"
@@ -150,9 +149,3 @@ func tag(ctx context.Context, releaseCommit string, createReleaseTag bool) error
150149
}
151150
return nil
152151
}
153-
154-
// formatTagName computes the name of the tag expected to be applied to the
155-
// commit that released the given library.
156-
func formatTagName(tagFormat string, lib *config.Library) string {
157-
return strings.NewReplacer("{name}", lib.Name, "{version}", lib.Version).Replace(tagFormat)
158-
}

internal/librarian/tag_test.go

Lines changed: 0 additions & 269 deletions
This file was deleted.

0 commit comments

Comments
 (0)