Skip to content

Commit

Permalink
chore: remove meta from versioning (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehr-dh99 authored Dec 29, 2024
1 parent 4478547 commit 8fdd7e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ To create a tag and push it to the repository, follow these steps:

```bash
VERSION=0.x.y # Replace x and y with the latest version numbers
git checkout main
git pull origin
git tag -s -a v${VERSION} -m "Version ${VERSION}"
git push origin v${VERSION}
Expand Down
6 changes: 0 additions & 6 deletions version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package pagu
import "fmt"

type Version struct {
Meta string
Major uint8
Minor uint8
Patch uint8
Expand All @@ -13,15 +12,10 @@ var version = Version{
Major: 0,
Minor: 0,
Patch: 1,
Meta: "beta",
}

func StringVersion() string {
ver := fmt.Sprintf("%d.%d.%d", version.Major, version.Minor, version.Patch)

if version.Meta != "" {
ver = fmt.Sprintf("%s-%s", ver, version.Meta)
}

return ver
}

0 comments on commit 8fdd7e6

Please sign in to comment.