Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got Error "The filename or extension is too long." While Build With "garble build" Instead of "go build" #719

Closed
knight-ni opened this issue Apr 26, 2023 · 1 comment

Comments

@knight-ni
Copy link

version of Garble and Go

$ garble version
0.9.3

$ go version
1.20.3
go env Output
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=
set GOCACHE=E:\tmp
set GOENV=C:\Users\Knight.Ni\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=E:\testddir\gopath\pkg\mod
set GONOPROXY=*.gitlab.com,*.gitee.com
set GONOSUMDB=*.gitlab.com,*.gitee.com
set GOOS=windows
set GOPATH=E:\testddir\gopath
set GOPRIVATE=*.gitlab.com,*.gitee.com
set GOPROXY=https://goproxy.cn,direct
set GOROOT=D:\Programes\GoLANG1.20.3\go1.20.3
set GOSUMDB=sum.golang.org
set GOTMPDIR=E:\tmp
set GOTOOLDIR=D:\Programes\GoLANG1.20.3\go1.20.3\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.3
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=E:\testddir\dmHC\go.mod
set GOWORK=E:\testddir\dmHC\go.work
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=E:\tmp\go-build2844060563=/tmp/go-build -gno-record-gcc-switches

What did you do?

garble build -ldflags "-s -w" -o bin/windows/dmHC_windows_amd64.exe

What did you expect to see?

build successful with exit status 0

What did you see instead?

E:\testddir\dmHC>(
set GOARCH=arm64
set GOOS=windows
rem D:\Programes\GoLANG1.20.3\go1.20.3\bin\go build -o bin/windows/dmHC_windows_arm64.exe
garble build -o bin/windows/dmHC_windows_arm64.exe
)
gitee.com/jiewen/gooxml/schema/soo/dml: E:\testddir\gopath\bin\garble.exe: fork/exec E:\testddir\gopath\bin\garble.exe: The filename or extension is too long.
exit status 1

@mvdan
Copy link
Member

mvdan commented Apr 26, 2023

Duplicate of #572.

@mvdan mvdan closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants