Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinAbro321 committed Mar 18, 2024
1 parent 1f77b22 commit 13056e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func getProjectPath() (string, error) {
return filepath.Join(filepath.Dir(filename), "..", ".."), nil
}

func cli(module string) error {
func printNewVersion(module string) error {
// Ensure the path is consistent with the go mod
baseProjectPath, err := getProjectPath()
if err != nil {
Expand Down Expand Up @@ -159,7 +159,6 @@ func getModuleTags(module string) ([]string, error) {
return nil, fmt.Errorf("failed to open repository: %w", err)
}

// List all tag references
tagRefs, err := r.Tags()
if err != nil {
return nil, fmt.Errorf("failed to fetch tags: %w", err)
Expand Down Expand Up @@ -208,7 +207,7 @@ func getTypeOfChange(commits []string) string {

func main() {
module := os.Args[1]
err := cli(module)
err := printNewVersion(module)
if err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down

0 comments on commit 13056e4

Please sign in to comment.