asticode / go-astilectron-demo

Discover the power of Astilectron through a demo app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't run the demo with go.mod

bdarge opened this issue · comments

I cloned the demo.
I did go mod tidy
the, astilectron-bundler -v result in:

FATA[0012] bundling failed: bundling for environment darwin/amd64 failed: building failed: # github.com/asticode/go-astilectron-demo
./bind_darwin_amd64.go:537:6: Asset redeclared in this block
        previous declaration at ./bind.go:3:34
./bind_darwin_amd64.go:623:6: AssetDir redeclared in this block
        previous declaration at ./bind.go:7:39
./bind_darwin_amd64.go:728:6: RestoreAssets redeclared in this block
        previous declaration at ./bind.go:11:38
: exit status 2  source="source_hook.go:17"

Can you please advice the cause of this problem?

Did you follow the whole first step of installation?

Specifically did you run rm $GOPATH/src/github.com/asticode/go-astilectron-demo/bind.go?

Does that fix your problem?

Yes, it did. I overlooked that. thanks.

If we need to remove it, can it be added in .gitignore

Unfortunately we can't remove it from the project since it needs to be present so that go get works 😞