-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Problem with relative modules #597
Comments
Is the replace directive the source of the problem here? Your code crashes, but that could be caused by a number of factors. Can you provide steps for us to reproduce the problem? |
The problem is not crashing, the crash is on purpose to show the panic trace. |
I see what you mean. Are you setting |
Let me try with GOGARBLE=github.com/your-org, if not working I will get back to you with a sample project. |
The problem is fixed. |
What version of Garble and Go are you using?
What environment are you running Garble on?
go env
GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/root/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/root/go" GOPRIVATE="" GOPROXY="https://proxy.golang.org,direct" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.19" GCCGO="gccgo" GOAMD64="v1" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/root/my-app/apps/client/go.mod" GOWORK="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3719268885=/tmp/go-build -gno-record-gcc-switches"What did you do?
I used this command to build:
GOOS=linux /root/go/bin/garble -literals build -o client -trimpath -ldflags="-s -w" .
We have a structure which we shared a folder between multiple servers,
we have included the the package utils in each go.mod file using this line:
replace github.com/my-app/utils => ../../utils
also included in require section:
github.com/my-app/utils v0.0.0
What did you expect to see?
Garbled local dependency
What did you see instead?
The text was updated successfully, but these errors were encountered: