#Hey ๐ When I try to `go build
1 messages ยท Page 1 of 1 (latest)
No just ran that from both linux and macos and can build successfully
what's the output of go env for you?
go env
GO111MODULE=""
GOARCH="arm64"
GOBIN="/Users/slumbering/go/bin"
GOCACHE="/Users/slumbering/Library/Caches/go-build"
GOENV="/Users/slumbering/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS="-mod=mod"
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/slumbering/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/slumbering/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.18.3/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.18.3/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.18.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/slumbering/forks/dagger/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 -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/pc/thc346m968sg1vn27tyy3c
7c0000gn/T/go-build1396236284=/tmp/go-build -gno-record-gcc-switches -fno-common"
GOFLAGS="-mod=mod" I don't have that set
What happens if you do GOFLAGS= go build ./cmd/dagger?
well... it did works ๐
ok
so maybe I should reset GOFLAGS
yep it works now if I export GOFLAGS=""
and then go build ./cmd...
thanks ๐
No problem! Glad it was an easy fix ๐
@next bramble Btw, seems related to latest change from Alex yesterday: https://github.com/dagger/dagger/blob/main/hack/README.md#bootstrapping
Yes it is