2
2
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:
Alexander Neumann 2018-10-07 20:40:18 +02:00
parent de4750b8e0
commit 0cb241b7d3
4 changed files with 3 additions and 8 deletions

View File

@ -525,11 +525,6 @@ func main() {
verbosePrintf("detected Go version %v\n", goVersion) verbosePrintf("detected Go version %v\n", goVersion)
if len(buildTags) == 0 {
verbosePrintf("adding build-tag release\n")
buildTags = []string{"release"}
}
for i := range buildTags { for i := range buildTags {
buildTags[i] = strings.TrimSpace(buildTags[i]) buildTags[i] = strings.TrimSpace(buildTags[i])
} }

View File

@ -1,4 +1,4 @@
// +build !release // +build debug
package debug package debug

View File

@ -1,4 +1,4 @@
// +build release // +build !debug
package debug package debug

View File

@ -315,7 +315,7 @@ func (env *TravisEnvironment) RunTests() error {
if *runCrossCompile { if *runCrossCompile {
// compile for all target architectures with tags // compile for all target architectures with tags
for _, tags := range []string{"release", "debug"} { for _, tags := range []string{"", "debug"} {
err := runWithEnv(env.env, "gox", "-verbose", err := runWithEnv(env.env, "gox", "-verbose",
"-osarch", strings.Join(env.goxOSArch, " "), "-osarch", strings.Join(env.goxOSArch, " "),
"-tags", tags, "-tags", tags,