File tree 2 files changed +21
-21
lines changed
2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -9,61 +9,61 @@ before:
9
9
- go mod tidy
10
10
builds :
11
11
- id : FreeBSD
12
- goos : [' freebsd' ]
13
- goarch : [' amd64' ]
12
+ goos : [" freebsd" ]
13
+ goarch : [" amd64" ]
14
14
- id : Linux_Intel
15
- goos : [' linux' ]
16
- goarch : [' amd64' ]
15
+ goos : [" linux" ]
16
+ goarch : [" amd64" ]
17
17
- id : macOS
18
- goos : [' darwin' ]
19
- goarch : [' amd64', ' arm64' ]
18
+ goos : [" darwin" ]
19
+ goarch : [" amd64", " arm64" ]
20
20
- id : Windows
21
- goos : [' windows' ]
22
- goarch : [' amd64' ]
21
+ goos : [" windows" ]
22
+ goarch : [" amd64" ]
23
23
universal_binaries :
24
24
- id : macOS
25
25
name_template : " {{ .ProjectName }}"
26
26
replace : true
27
27
archives :
28
28
- id : FreeBSD
29
- builds : [' FreeBSD' ]
29
+ builds : [" FreeBSD" ]
30
30
format : tar.gz
31
31
files :
32
- - none*
32
+ - none*
33
33
name_template : " {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
34
34
replacements :
35
35
amd64 : Intel
36
36
freebsd : FreeBSD
37
37
- id : Linux_Intel
38
- builds : [' Linux_Intel' ]
38
+ builds : [" Linux_Intel" ]
39
39
format : tar.gz
40
40
files :
41
- - none*
41
+ - none*
42
42
name_template : " {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
43
43
replacements :
44
- amd64 : Intel
45
44
linux : Linux
46
45
- id : macOS
47
- builds : [' macOS' ]
46
+ builds : [" macOS" ]
48
47
format : tar.gz
49
48
files :
50
- - none*
49
+ - none*
51
50
name_template : " {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
52
51
replacements :
53
52
darwin : macOS
53
+ amd64 : Intel
54
54
- id : Windows
55
- builds : [' Windows' ]
55
+ builds : [" Windows" ]
56
56
format : zip
57
57
files :
58
- - none*
58
+ - none*
59
59
name_template : " {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
60
60
replacements :
61
61
amd64 : Intel
62
62
windows : Windows
63
63
64
64
nfpms :
65
65
- id : Linux
66
- builds : [' Linux_Intel' ]
66
+ builds : [" Linux_Intel" ]
67
67
file_name_template : " {{ .ProjectName }}"
68
68
replacements :
69
69
amd64 : Intel
@@ -104,4 +104,4 @@ scoop:
104
104
105
105
changelog :
106
106
skip : false
107
- use : git
107
+ use : git
Original file line number Diff line number Diff line change @@ -228,8 +228,8 @@ func (c *Config) Clean() error {
228
228
return nil
229
229
}
230
230
name = filepath .Clean (name )
231
- p := strings .Split (name , string (filepath .Separator ))
232
- if p [ 0 ] == "~" {
231
+ before , _ , _ := strings .Cut (name , string (filepath .Separator ))
232
+ if before == "~" {
233
233
hd , err := os .UserHomeDir ()
234
234
if err != nil {
235
235
return fmt .Errorf ("%s: export %w" , name , err )
You can’t perform that action at this time.
0 commit comments