File tree Expand file tree Collapse file tree 4 files changed +21
-12
lines changed Expand file tree Collapse file tree 4 files changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ archive:
20
20
replacements :
21
21
386 : i386
22
22
amd64 : x86_64
23
+ format_overrides :
24
+ - goos : windows
25
+ format : zip
23
26
brew :
24
27
github :
25
28
owner : meinto
Original file line number Diff line number Diff line change 1
- 4.1.16
1
+ 4.2.0
Original file line number Diff line number Diff line change 2
2
class GitSemver < Formula
3
3
desc ""
4
4
homepage ""
5
- url "https://github.com/meinto/git-semver/releases/download/v4.1.14 /semver_4.1.14_darwin_x86_64 .tar.gz"
6
- version "4.1.14 "
7
- sha256 "7c0c5f65706abe1483cb967f78b41fb1a25710d73c54ac0c7c4831f0dffb4c66 "
5
+ url "https://github.com/meinto/git-semver/releases/download/v4.2.0 /semver_4.2.0_darwin_x86_64 .tar.gz"
6
+ version "4.2.0 "
7
+ sha256 "b84d14e1be201e1e6b0d39458a688450f976d4a2b7ec73b079be276ca4f4b5be "
8
8
9
9
depends_on "git"
10
10
Original file line number Diff line number Diff line change @@ -54,14 +54,20 @@ var rootCmd = &cobra.Command{
54
54
},
55
55
Run : func (cmd * cobra.Command , args []string ) {
56
56
57
- g := git .NewGitService (viper .GetString ("gitPath" ))
58
- repoPath , err := g .GitRepoPath ()
59
- if err != nil {
60
- log .Fatal (err )
61
- }
57
+ var g git.Service
58
+ var fs file.VersionFileService
59
+ var repoPath string
60
+ if rootCmdFlags .push || rootCmdFlags .createTag {
61
+ g = git .NewGitService (viper .GetString ("gitPath" ))
62
+ rp , err := g .GitRepoPath ()
63
+ if err != nil {
64
+ log .Fatal (err )
65
+ }
66
+ repoPath = rp
62
67
63
- versionFilepath := repoPath + "/" + viper .GetString ("versionFile" )
64
- fs := file .NewVersionFileService (versionFilepath )
68
+ versionFilepath := repoPath + "/" + viper .GetString ("versionFile" )
69
+ fs = file .NewVersionFileService (versionFilepath )
70
+ }
65
71
66
72
if rootCmdFlags .push {
67
73
g .AddVersionChanges (viper .GetString ("versionFile" ))
@@ -88,7 +94,7 @@ var rootCmd = &cobra.Command{
88
94
}
89
95
90
96
if ! rootCmdFlags .createTag && ! rootCmdFlags .push {
91
- box := packr .NewBox (repoPath + " /buildAssets" )
97
+ box := packr .NewBox ("../../.. /buildAssets" )
92
98
version , err := box .FindString ("VERSION" )
93
99
if err != nil {
94
100
log .Fatal (err )
You can’t perform that action at this time.
0 commit comments