mirror of
https://github.com/octoleo/restic.git
synced 2024-11-25 14:17:42 +00:00
Remove build tag release
This commit is contained in:
parent
de4750b8e0
commit
0cb241b7d3
5
build.go
5
build.go
@ -525,11 +525,6 @@ func main() {
|
||||
|
||||
verbosePrintf("detected Go version %v\n", goVersion)
|
||||
|
||||
if len(buildTags) == 0 {
|
||||
verbosePrintf("adding build-tag release\n")
|
||||
buildTags = []string{"release"}
|
||||
}
|
||||
|
||||
for i := range buildTags {
|
||||
buildTags[i] = strings.TrimSpace(buildTags[i])
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !release
|
||||
// +build debug
|
||||
|
||||
package debug
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build release
|
||||
// +build !debug
|
||||
|
||||
package debug
|
||||
|
||||
|
@ -315,7 +315,7 @@ func (env *TravisEnvironment) RunTests() error {
|
||||
|
||||
if *runCrossCompile {
|
||||
// compile for all target architectures with tags
|
||||
for _, tags := range []string{"release", "debug"} {
|
||||
for _, tags := range []string{"", "debug"} {
|
||||
err := runWithEnv(env.env, "gox", "-verbose",
|
||||
"-osarch", strings.Join(env.goxOSArch, " "),
|
||||
"-tags", tags,
|
||||
|
Loading…
Reference in New Issue
Block a user