Replies: 2 comments 6 replies
-
|
Thanks for opening this. Some of this will be addressed in as-of-yet unannounced v3 👍 |
Beta Was this translation helpful? Give feedback.
6 replies
-
|
Currently v3 is also incompatible with this flow. See this closed (but valid) bug for details. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
One of the great features Go has is
go run. With this it is possible to run wails without having a binary in the path for other projects which are not using it. (muscle memory makes me typewails buildanyways)I would like to propose a
--go-runflag which does the following:tools.go(see below for explanation)Makefileor abuild.shtools.go
This file has the contents:
This pins the wails version and it ensures that wails is not removed from the dependencies when running
go mod tidy, otherwise there might be dependency issues. It also allows for multiple projects to use different versions (for example, a hobby project might use a more up-to-date version of wails than a work project)Makefile/build.sh
If
makeis available, create a Makefile wrapping the most common functions:If
makeis not found within the path, a simplebuild.shachieving the same can be generated. The reason for this is simply because nobody wants to type the import path every time they want to run it.Updating wails
Wails can now be updated for just this project the same way all other Go packages are updated and there is no chance of a developer using a wrong version.
Beta Was this translation helpful? Give feedback.
All reactions