Use netgo (instead of C bindings). Fix #700
This commit is contained in:
+7
-7
@@ -15,7 +15,7 @@ builds:
|
|||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
flags:
|
flags:
|
||||||
- -tags=embed
|
- -tags=embed,netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
- "-extldflags '-static -lz'"
|
- "-extldflags '-static -lz'"
|
||||||
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
||||||
@@ -28,7 +28,7 @@ builds:
|
|||||||
goarch:
|
goarch:
|
||||||
- 386
|
- 386
|
||||||
flags:
|
flags:
|
||||||
- -tags=embed
|
- -tags=embed,netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
- "-extldflags '-static'"
|
- "-extldflags '-static'"
|
||||||
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
||||||
@@ -47,7 +47,7 @@ builds:
|
|||||||
- 6
|
- 6
|
||||||
- 7
|
- 7
|
||||||
flags:
|
flags:
|
||||||
- -tags=embed
|
- -tags=embed,netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
- "-extldflags '-static'"
|
- "-extldflags '-static'"
|
||||||
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
||||||
@@ -62,7 +62,7 @@ builds:
|
|||||||
goarch:
|
goarch:
|
||||||
- arm64
|
- arm64
|
||||||
flags:
|
flags:
|
||||||
- -tags=embed
|
- -tags=embed,netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
- "-extldflags '-static'"
|
- "-extldflags '-static'"
|
||||||
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
||||||
@@ -78,7 +78,7 @@ builds:
|
|||||||
goarch:
|
goarch:
|
||||||
- 386
|
- 386
|
||||||
flags:
|
flags:
|
||||||
- -tags=embed
|
- -tags=embed,netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
- "-extldflags '-static'"
|
- "-extldflags '-static'"
|
||||||
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
||||||
@@ -94,7 +94,7 @@ builds:
|
|||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
flags:
|
flags:
|
||||||
- -tags=embed
|
- -tags=embed,netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
- "-extldflags '-static'"
|
- "-extldflags '-static'"
|
||||||
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
||||||
@@ -110,7 +110,7 @@ builds:
|
|||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
flags:
|
flags:
|
||||||
- -tags=embed
|
- -tags=embed,netgo
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
- -s -w -X github.com/deluan/navidrome/consts.gitSha={{.ShortCommit}} -X github.com/deluan/navidrome/consts.gitTag={{.Version}}
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ buildall: check_env
|
|||||||
@(cd ./ui && npm run build)
|
@(cd ./ui && npm run build)
|
||||||
go-bindata -fs -prefix "resources" -tags embed -ignore="\\\*.go" -pkg resources -o resources/embedded_gen.go resources/...
|
go-bindata -fs -prefix "resources" -tags embed -ignore="\\\*.go" -pkg resources -o resources/embedded_gen.go resources/...
|
||||||
go-bindata -fs -prefix "ui/build" -tags embed -nocompress -pkg assets -o assets/embedded_gen.go ui/build/...
|
go-bindata -fs -prefix "ui/build" -tags embed -nocompress -pkg assets -o assets/embedded_gen.go ui/build/...
|
||||||
go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" -tags=embed
|
go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" -tags=embed,netgo
|
||||||
.PHONY: buildall
|
.PHONY: buildall
|
||||||
|
|
||||||
pre-push: lint test
|
pre-push: lint test
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
-s -r "(\.go$$|\.cpp$$|\.h$$|navidrome.toml|resources)" -R "(^ui|^data|^db/migration)" -- go run .
|
-s -r "(\.go$$|\.cpp$$|\.h$$|navidrome.toml|resources)" -R "(^ui|^data|^db/migration)" -- go run -tags netgo .
|
||||||
|
|||||||
Reference in New Issue
Block a user