From a0d9e26dc72658b45f01c80e77d5427023d5382e Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Thu, 5 Mar 2020 09:27:20 -0800 Subject: [PATCH] Support arm32, 386 compilation: (#3103) --- buildscripts/cross-compile.sh | 2 +- cmd/stat.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildscripts/cross-compile.sh b/buildscripts/cross-compile.sh index 34643cec..4c59b30f 100755 --- a/buildscripts/cross-compile.sh +++ b/buildscripts/cross-compile.sh @@ -8,7 +8,7 @@ function _init() { export CGO_ENABLED=0 ## List of architectures and OS to test coss compilation. - SUPPORTED_OSARCH="linux/ppc64le linux/arm64 linux/s390x darwin/amd64 freebsd/amd64" + SUPPORTED_OSARCH="linux/ppc64le linux/arm64 linux/s390x darwin/amd64 freebsd/amd64 linux/arm linux/386" } function _build() { diff --git a/cmd/stat.go b/cmd/stat.go index cbb35162..d0529181 100644 --- a/cmd/stat.go +++ b/cmd/stat.go @@ -164,7 +164,7 @@ func statURL(targetURL string, isIncomplete, isRecursive bool, encKeyDB map[stri standardizedURL := getStandardizedURL(targetURL) if !isRecursive && !strings.HasPrefix(url, standardizedURL) { - return nil, errTargetNotFound(targetURL) + return nil, errTargetNotFound(targetURL).Trace(url, standardizedURL) } _, stat, err := url2Stat(url, true, true, encKeyDB)