metalbear-co / mirrord

Connect your local process and your cloud environment, and run local code in cloud conditions.
https://mirrord.dev
MIT License
3.8k stars 103 forks source link

Cannot be executed with go run/build, or air live reload #2741

Open phpmaple opened 2 months ago

phpmaple commented 2 months ago

Bug Description

It is possibly related to "go build", Because there won't be any issues with go build if I run it before mirrod.

Steps to Reproduce

mirrord exec -f .mirrord/mirrord.json air or mirrord exec -f .mirrord/mirrord.json go run main.go

Backtrace

No response

Relevant Logs

go: could not create module cache: mkdir /go: read-only file system go: could not create module cache: mkdir /go: read-only file system go: could not create module cache: mkdir /go: read-only file system go: could not create module cache: mkdir /go: read-only file system go: could not create module cache: mkdir /go: read-only file system go: could not create module cache: mkdir /go: read-only file system make: *** [build-debug] Error 1

Your operating system and version

MacOS 14.4.1 (23E224)

Local process

golang

Local process version

No response

Additional Info

No response

aviramha commented 1 week ago

seems it's trying to access /go for some reason - perhaps it's fetching remote env that sets GOROOT to /go?