Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing wails on Windows #93

Closed
yosefbenshimon opened this issue May 18, 2019 · 5 comments
Closed

Problem installing wails on Windows #93

yosefbenshimon opened this issue May 18, 2019 · 5 comments
Assignees
Labels
awaiting feedback More information is required from the requestor Bug Something isn't working

Comments

@yosefbenshimon
Copy link

Description
Error initial compiling

To Reproduce
Steps to reproduce the behaviour:

  1. Go to 'CMD window'

  2. Click on 'go get github.com/wailsapp/wails/cmd/wails'

  3. See error:

# github.com/wailsapp/wails/cmd
C:\Users\u\go\src\github.com\wailsapp\wails\cmd\templates.go:50:18: too many arguments in call to entries.AddSlice
        have ([]string, error)
        want ([]string)
C:\Users\u\go\src\github.com\wailsapp\wails\cmd\templates.go:105:28: too many arguments in call to templateFilenames.AddSlice
        have ([]string, error)
        want ([]string)

Expected behaviour
Successful compiling
download

System Details
Windows 10 64 bit

@yosefbenshimon yosefbenshimon added the Bug Something isn't working label May 18, 2019
@k4ml
Copy link

k4ml commented May 19, 2019

Having this same issue on osx 10.11.6:-

go get github.com/wailsapp/wails/cmd/wails
# github.com/wailsapp/wails/cmd
go/src/github.com/wailsapp/wails/cmd/templates.go:50:18: too many arguments in call to entries.AddSlice
	have ([]string, error)
	want ([]string)
go/src/github.com/wailsapp/wails/cmd/templates.go:105:28: too many arguments in call to templateFilenames.AddSlice
	have ([]string, error)
	want ([]string)
11:09:33 ~$ go version
go version go1.11.1 darwin/amd64

@leaanthony
Copy link
Member

leaanthony commented May 19, 2019

Hi. This happens when you don't have your GO111MODULE environment variable set. I've improved the docs to make this more explicit.

It shouldn't do what it's doing however that code has already been rewritten and is almost ready for release. In fact, it may be out today.

@leaanthony leaanthony self-assigned this May 19, 2019
@leaanthony leaanthony added the awaiting feedback More information is required from the requestor label May 19, 2019
@yosefbenshimon
Copy link
Author

I added
SET GO111MODULE=on
And works perfect for me
Thank you!

@k4ml
Copy link

k4ml commented May 20, 2019

That strange as if I added GO111MODULE=on I will bump into this issue and the recommendation there is to turn off GO111MODULE=on.

11:09:33 ~$ go version
go version go1.11.1 darwin/amd64
05:00:37 ~$ export GO111MODULE=on
05:00:42 ~$ go get github.com/wailsapp/wails/cmd/wails
go: cannot find main module; see 'go help modules'

@leaanthony
Copy link
Member

Interesting. You could just use go 1.12. That being said, the issue above should be fixed now. Let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting feedback More information is required from the requestor Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants