From 52004cdde8788e9b2a5aa25a63c08add3dc8a469 Mon Sep 17 00:00:00 2001 From: Fabian Wickborn Date: Fri, 14 Jul 2017 11:54:19 +0200 Subject: [PATCH] Allow absolute target path in build.go Fixes #1099. --- build.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.go b/build.go index b6fd2ad8d..895b0ff78 100644 --- a/build.go +++ b/build.go @@ -401,7 +401,10 @@ func main() { if err != nil { die("Getwd() returned %v\n", err) } - output := filepath.Join(cwd, outputFilename) + output := outputFilename + if !filepath.IsAbs(output) { + output = filepath.Join(cwd, output) + } version := getVersion() constants := Constants{}