Fix build break

pull/2531/head
Shelikhoo 2019-04-16 08:36:12 +08:00 committed by Nicholas Wang
parent c3dae6305e
commit a6b3281421
No known key found for this signature in database
GPG Key ID: F20CA399C9BD9100
3 changed files with 10 additions and 8 deletions

View File

@ -94,7 +94,7 @@ jobs:
displayName: 'Install Bazel'
- script: |
cd ./src/v2ray.com/core
$HOME/bin/bazel build --action_env=GOPATH=$GOPATH --action_env=PATH=$PATH --action_env=GPG_PASS=${SIGN_KEY_PASS} //release:all
$HOME/bin/bazel build --action_env=GOPATH=$GOPATH --action_env=PATH=$PATH --action_env=GPG_PASS=${SIGN_KEY_PASS} --action_env=SPWD=$PWD //release:all
workingDirectory: '$(GOPATH)'
displayName: 'Build Binaries'
- script: |

View File

@ -18,10 +18,10 @@ import (
"v2ray.com/core/common/serial"
)
var (
version = "4.23.2"
const (
version = "4.20"
build = "Custom"
codename = "V2Fly, a community-driven edition of V2Ray."
codename = "Let's Fly"
intro = "A unified platform for anti-censorship."
)

View File

@ -28,10 +28,10 @@ def _go_command(ctx):
"CGO_ENABLED=0",
"GOOS="+ctx.attr.os,
"GOARCH="+ctx.attr.arch,
"GOROOT_FINAL=/go",
"GOCACHE=${TMPDIR}/gocache"
#"GOROOT_FINAL=/go",
"GO111MODULE=on",
]
if ctx.attr.mips: # https://github.com/golang/go/issues/27260
envs+=["GOMIPS="+ctx.attr.mips]
envs+=["GOMIPS64="+ctx.attr.mips]
@ -40,7 +40,9 @@ def _go_command(ctx):
if ctx.attr.arm:
envs+=["GOARM="+ctx.attr.arm]
command = " ".join(envs) + " " + command
switchToPwd="cd ${SPWD} && "
command = switchToPwd + " ".join(envs) + " " + command
ctx.actions.run_shell(
outputs = [output_file],