mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Relative GOBIN not allowed in Go 1.5.2+
This commit is contained in:
parent
aa42aafe33
commit
7351217489
6
build.go
6
build.go
@ -195,7 +195,11 @@ func bench(pkg string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func install(pkg string, tags []string) {
|
func install(pkg string, tags []string) {
|
||||||
os.Setenv("GOBIN", "./bin")
|
cwd, err := os.Getwd()
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
os.Setenv("GOBIN", filepath.Join(cwd, "bin"))
|
||||||
args := []string{"install", "-v", "-ldflags", ldflags()}
|
args := []string{"install", "-v", "-ldflags", ldflags()}
|
||||||
if len(tags) > 0 {
|
if len(tags) > 0 {
|
||||||
args = append(args, "-tags", strings.Join(tags, ","))
|
args = append(args, "-tags", strings.Join(tags, ","))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user