-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fyne should have a "version" command #656
Comments
Agreed. With modules it is easier, but this would be a helpful addition |
I think the bug template asks for used version of
|
Yes, that's what I'm doing currently; and it isn't a problem. However, because many (most?) people use There isn't a good answer. Subversion had a nice ability to embed revision numbers in files, which both git and mercurial lack, and because the design of That said, thanks to modules we can get some information about fyne, and I think it'd be useful if it can be collected. For example:
Although, I just tried this on another machine and the module information isn't in that binary :-/ |
Hmm that is an interesting point. There is no guarantee that ‘fyne version’ would report the version that an application was built with. I’m not sure about the right way to do this now. There is some value in “fyne version” but probably only when reporting issues with compiling or packaging... |
may do two steps:
|
Or, maybe we're making this too complex. Modules is now official and recommended in 1.14, so maybe the instructions should be to include I still suspect that, using the go internal API, the fyne executable should be able to figure out the version of the fyne library that it's using to compile and package an application with. With |
Try issuing the commands:
To embed it in a program, you can use
This wil generate a version.go file with the constant string FyneVersion set to the used fyne version. (Note that the given git describe command is very flexible, and will normaly print the latest tag, but adds the hash if the latest commit is not taged. And it adds -dirty if the code has been modified.) |
@jkvatne -- this admirably solves the question: which version of the When reporting bugs against the |
The bug report template asks for the
fyne
version, but there's no way to do it except to go to the git checkout and query git.If there's a way to get the version, it'd be great if that could be documented in the bug template, because it's not obvious.
The text was updated successfully, but these errors were encountered: