wails
wails copied to clipboard
Unable to install wails v2: github.com/dlclark/regexp2: no non-test Go files in
Description
Unable to install wails v2:
$ go install github.com/wailsapp/wails/v2/cmd/wails@latest
go: downloading github.com/wailsapp/wails v1.16.9
go: downloading github.com/wailsapp/wails/v2 v2.6.0
go: downloading github.com/leaanthony/slicer v1.6.0
go: downloading github.com/leaanthony/debme v1.2.1
go: downloading github.com/leaanthony/clir v1.3.0
go: downloading github.com/flytam/filenamify v1.0.0
go: downloading github.com/labstack/gommon v0.4.0
go: downloading github.com/leaanthony/gosod v1.0.3
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/pterm/pterm v0.12.49
go: downloading github.com/tidwall/sjson v1.1.7
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.19
go: downloading github.com/samber/lo v1.38.1
go: downloading github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
go: downloading github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
go: downloading github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
go: downloading golang.org/x/mod v0.12.0
go: downloading golang.org/x/sys v0.8.0
go: downloading github.com/wzshiming/ctc v1.2.3
go: downloading github.com/Masterminds/semver v1.5.0
go: downloading github.com/charmbracelet/glamour v0.5.0
go: downloading github.com/jackmordaunt/icns v1.0.0
go: downloading github.com/leaanthony/winicon v1.0.0
go: downloading github.com/tc-hib/winres v0.1.5
go: downloading github.com/go-git/go-git/v5 v5.3.0
go: downloading github.com/tidwall/gjson v1.9.3
go: downloading atomicgo.dev/cursor v0.1.1
go: downloading atomicgo.dev/keyboard v0.2.8
go: downloading github.com/gookit/color v1.5.2
go: downloading github.com/lithammer/fuzzysearch v1.1.5
go: downloading github.com/mattn/go-runewidth v0.0.13
go: downloading golang.org/x/term v0.8.0
go: downloading golang.org/x/text v0.9.0
go: downloading golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
go: downloading golang.org/x/tools v0.6.0
go: downloading github.com/wzshiming/winseq v0.0.0-20200112104235-db357dc107ae
go: downloading github.com/muesli/termenv v0.9.0
go: downloading github.com/yuin/goldmark v1.4.13
go: downloading github.com/yuin/goldmark-emoji v1.0.1
go: downloading github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
go: downloading golang.org/x/image v0.5.0
go: downloading github.com/tidwall/match v1.1.1
go: downloading github.com/tidwall/pretty v1.2.0
go: downloading github.com/go-git/go-billy/v5 v5.2.0
go: downloading github.com/imdario/mergo v0.3.12
go: downloading github.com/sergi/go-diff v1.2.0
go: downloading golang.org/x/crypto v0.9.0
go: downloading github.com/containerd/console v1.0.3
go: downloading github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778
go: downloading github.com/rivo/uniseg v0.4.4
go: downloading github.com/alecthomas/chroma v0.10.0
go: downloading github.com/microcosm-cc/bluemonday v1.0.17
go: downloading github.com/muesli/reflow v0.3.0
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/lucasb-eyer/go-colorful v1.2.0
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/emirpasic/gods v1.12.0
go: downloading github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99
go: downloading github.com/dlclark/regexp2 v1.4.0
go: downloading github.com/go-git/gcfg v1.5.0
go: downloading github.com/aymerick/douceur v0.2.0
go: downloading github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351
go: downloading golang.org/x/net v0.10.0
go: downloading github.com/xanzy/ssh-agent v0.3.0
go: downloading gopkg.in/warnings.v0 v0.1.2
go: downloading github.com/gorilla/css v1.0.0
github.com/dlclark/regexp2: no non-test Go files in /Users/yusuf/go/pkg/mod/github.com/dlclark/[email protected]
To Reproduce
Follow installation instruction on: https://wails.io/docs/gettingstarted/installation
Expected behaviour
wails v2 installed successfully.
Screenshots
No response
Attempted Fixes
go clean -modcache
no luck
System Details
No wails installed.
Additional context
macOS 12.6.8 go env:
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/Users/yusuf/Library/Caches/go-build'
GOENV='/Users/yusuf/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/yusuf/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/yusuf/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_amd64'
GOVCS=''
GOVERSION='go1.21.0'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/dev/null'
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 x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/5g/s_38bwb97xs6c2_pqkg93tw00000gn/T/go-build1930977928=/tmp/go-build -gno-record-gcc-switches -fno-common'
Use Go 1.18 or Go 1.19 solved the issue. I'm not sure what happen with Go 1.21.0 making the installation fail.
That's so weird. If you've uninstalled 1.20, you could perhaps try reinstalling and trying again?
Reinstalling go 1.21.0 -> fail installing wails (same error no non-test Go files
)
Reinstalling go 1.18.10 -> succeed installing wails
I have no idea why.
That's so weird. Will check 👍
FYI, I think this issue only happen with Go 1.21.0 I tried with Go 1.21.1 (latest stable) the installation works fine.
Can we close this and just recommend using >=1.21.1?
Does the same thing happen when you clone the repo and run go install
in v2/cmd/wails
?
I can't reproduce this with Go 1.20, 1.21 or 1.22.