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
-
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 build
anyways)I would like to propose a
--go-run
flag which does the following:tools.go
(see below for explanation)Makefile
or abuild.sh
tools.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
make
is available, create a Makefile wrapping the most common functions:If
make
is not found within the path, a simplebuild.sh
achieving 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