forked from TrueCloudLab/neoneo-go
parent
753d604784
commit
a4d402da86
1 changed files with 1 additions and 9 deletions
|
@ -11,7 +11,6 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/nspcc-dev/neo-go/pkg/smartcontract/binding"
|
"github.com/nspcc-dev/neo-go/pkg/smartcontract/binding"
|
||||||
|
@ -162,14 +161,7 @@ func getBuildInfo(name string, src interface{}) (*buildInfo, error) {
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("unsupported src type: %T", s))
|
panic(fmt.Sprintf("unsupported src type: %T", s))
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(runtime.Version(), "go1.15") {
|
|
||||||
dir = os.TempDir()
|
|
||||||
name = filepath.Join(dir, filepath.Base(name))
|
|
||||||
absName = name
|
|
||||||
names = append(names, "file="+name)
|
|
||||||
} else {
|
|
||||||
names = append(names, name)
|
names = append(names, name)
|
||||||
}
|
|
||||||
conf.Overlay[absName] = buf
|
conf.Overlay[absName] = buf
|
||||||
} else {
|
} else {
|
||||||
if strings.HasSuffix(name, ".go") {
|
if strings.HasSuffix(name, ".go") {
|
||||||
|
|
Loading…
Reference in a new issue