Use deterministic path for repo checkout

parent f8ab5340
......@@ -7,8 +7,9 @@ from utils import get_build_versions, ex, get_sha256, fail, zip_files, get_final
get_sources_file_name, get_pom_file_name, reset_time, get_obfs4_version, check_go_version, \
get_version, GO_PATH, GO_ROOT, NDK_DIR
REPO_DIR = './obfs4'
GO_FLAGS = ['-asmflags', '-trimpath', '-o', '../obfs4proxy']
REPO_DIR = '/tmp/obfs4' # This needs to be always the same path, otherwise breaks reproducibility
OUTPUT_FILE = os.path.abspath(os.path.join(os.path.curdir, 'obfs4proxy'))
GO_FLAGS = ['-asmflags', '-trimpath', '-o', OUTPUT_FILE]
def main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment