danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
22.77k stars 2.38k forks source link

[Bug]: After following Migration instructions "GOPROXY" and "GOSUMDB" remain as issues #906

Open maibarra opened 1 week ago

maibarra commented 1 week ago

What happened?

I was doing the migration process, when THIS happened: after attempting go install github.com/danielmiessler/fabric@latest

go: github.com/danielmiessler/fabric@latest: GOPROXY list is not the empty string, but contains no entries

After I setup GOPROXY=https://proxy.golang.org,direct through zshrc, here's what happened:

github.com/danielmiessler/fabric@v1.4.3: verifying module: missing GOSUMDB

. I was expecting Installation in goland to happen instead.

Is there an easier way to migrate old Python-based fabric to new Golang-esque Fabric?

Or should i just try and install the old version again?

Thanks in advance.

Version check

Relevant log output

alternative "go install ." showed this output:
go install .                                                              ✔  base   at 16:18:20 
go: downloading github.com/jessevdk/go-flags v1.6.1
go: downloading github.com/joho/godotenv v1.5.1
go: downloading github.com/samber/lo v1.47.0
go: downloading github.com/atotto/clipboard v0.1.4
go: downloading github.com/go-git/go-git/v5 v5.12.0
go: downloading github.com/otiai10/copy v1.14.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/liushuangls/go-anthropic/v2 v2.6.0
go: downloading github.com/sashabaranov/go-openai v1.28.2
go: downloading github.com/ollama/ollama v0.3.6
go: downloading github.com/google/generative-ai-go v0.17.0
go: downloading google.golang.org/api v0.192.0
go: downloading github.com/anaskhan96/soup v1.2.5
core/fabric.go:6:2: GOPROXY list is not the empty string, but contains no entries
db/db.go:5:2: GOPROXY list is not the empty string, but contains no entries
db/storage.go:6:2: GOPROXY list is not the empty string, but contains no entries
vendors/anthropic/anthropic.go:9:2: GOPROXY list is not the empty string, but contains no entries
vendors/openai/openai.go:11:2: GOPROXY list is not the empty string, but contains no entries
vendors/gemini/gemini.go:10:2: GOPROXY list is not the empty string, but contains no entries
vendors/gemini/gemini.go:11:2: GOPROXY list is not the empty string, but contains no entries
vendors/gemini/gemini.go:12:2: GOPROXY list is not the empty string, but contains no entries
vendors/ollama/ollama.go:13:2: GOPROXY list is not the empty string, but contains no entries
youtube/youtube.go:8:2: GOPROXY list is not the empty string, but contains no entries
youtube/youtube.go:11:2: GOPROXY list is not the empty string, but contains no entries
core/patterns_loader.go:13:2: GOPROXY list is not the empty string, but contains no entries
core/patterns_loader.go:14:2: GOPROXY list is not the empty string, but contains no entries
core/patterns_loader.go:15:2: GOPROXY list is not the empty string, but contains no entries
core/patterns_loader.go:16:2: GOPROXY list is not the empty string, but contains no entries
core/patterns_loader.go:17:2: GOPROXY list is not the empty string, but contains no entries
core/fabric.go:16:2: GOPROXY list is not the empty string, but contains no entries
cli/flags.go:11:2: GOPROXY list is not the empty string, but contains no entries

Relevant screenshots (optional)

Screenshot 2024-09-02 at 4 28 34 p m

ingorichter commented 1 week ago

I'm seeing the same issue. I was able to resolve the GOSUMDB error by export GOSUMDB="sum.golang.org" but that caused a bunch of warnings

bamcop commented 1 week ago

Please execute the go env command in the command line, then paste the output here

maibarra commented 4 days ago

Thanks @bamcop , here's the output:

GO111MODULE=''
GOARCH='arm64'
GOBIN=''
GOCACHE='/Users/myUser/Library/Caches/go-build'
GOENV='/Users/myUser/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='arm64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/myUser/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/myUser/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/Users/myUser/.go'
GOSUMDB=''
GOTMPDIR=''
GOTOOLCHAIN=''
GOTOOLDIR='/Users/myUser/.go/pkg/tool/darwin_arm64'
GOVCS=''
GOVERSION='go1.23.0'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/Users/myUser/Library/Application Support/go/telemetry'
GCCGO='gccgo'
GOARM64='v8.0'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/myUser/git/fabric/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/x2/j8d4xkz14nv7p74fmvr8vf0w0000gn/T/go-build2307916941=/tmp/go-build -gno-record-gcc-switches -fno-common'

Suggestions are welcome. Thank you!

bamcop commented 1 day ago

@maibarra execute this in the command line go env -w GOSUMDB='sum.golang.org'