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)
|
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])
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// +build !release
|
// +build debug
|
||||||
|
|
||||||
package debug
|
package debug
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// +build release
|
// +build !debug
|
||||||
|
|
||||||
package debug
|
package debug
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user