mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-24 09:24:36 +00:00
parent
34bd9d31ac
commit
c51a6d3e57
2 changed files with 2 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
0.35.0
|
0.35.1
|
||||||
|
|
|
@ -75,6 +75,7 @@ func CompileAndSave(src string, o *Options) error {
|
||||||
if !strings.HasSuffix(src, ".go") {
|
if !strings.HasSuffix(src, ".go") {
|
||||||
return fmt.Errorf("%s is not a Go file", src)
|
return fmt.Errorf("%s is not a Go file", src)
|
||||||
}
|
}
|
||||||
|
o.Outfile = strings.TrimSuffix(o.Outfile, fmt.Sprintf(".%s", fileExt))
|
||||||
if len(o.Outfile) == 0 {
|
if len(o.Outfile) == 0 {
|
||||||
o.Outfile = strings.TrimSuffix(src, ".go")
|
o.Outfile = strings.TrimSuffix(src, ".go")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue