acheong08 / ChatGPTProxy

Simple Cloudflare bypass for ChatGPT
The Unlicense
1.32k stars 326 forks source link

Mac Build Error #72

Closed zwluoqi closed 1 year ago

zwluoqi commented 1 year ago

in win11 is working, but in my mac OS:12.6.2 Monterey GO:go1.20.4 darwin/amd64

go build .
package github.com/acheong08/ChatGPT-Proxy-V4
    imports github.com/acheong08/endless
    imports github.com/acheong08/endless/signals: build constraints exclude all Go files in /Users/zhouwei/go/pkg/mod/github.com/acheong08/endless@v0.0.0-20230522010333-1359fd84c836/signals

i find the version is the leteast

image
zwluoqi commented 1 year ago

use leatest released code can working。 https://github.com/acheong08/ChatGPT-Proxy-V4/releases

t1maccapp commented 1 year ago

What helped me is specifying build tag, in rep folder:

go build --tags=macos .
acheong08 commented 1 year ago

Fixed in https://github.com/acheong08/ChatGPT-Proxy-V4/commit/e6c9cba6d261fd9aa2525595e93c33cfdda6ff97