5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 11:29:10 +08:00

Fix build issues with no git repo

This commit is contained in:
Lea Anthony 2025-02-08 12:56:06 +11:00
parent 998d33be56
commit 2afdf5231c
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
4 changed files with 13 additions and 2 deletions

View File

@ -1 +1 @@
v2.9.2
v2.9.3

View File

@ -53,7 +53,7 @@ func GenerateBindings(options Options) (string, error) {
}
}
stdout, stderr, err = shell.RunCommand(workingDirectory, options.Compiler, "build", "-tags", tagString, "-o", filename)
stdout, stderr, err = shell.RunCommand(workingDirectory, options.Compiler, "build", "-tags", tagString, "-buildvcs=false", "-o", filename)
if err != nil {
return stdout, fmt.Errorf("%s\n%s\n%s", stdout, stderr, err)
}

View File

@ -193,6 +193,8 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
// Default go build command
commands.Add("build")
commands.Add("-buildvcs=false")
// Add better debugging flags
if options.Mode == Dev || options.Mode == Debug {
commands.Add("-gcflags")

View File

@ -14,6 +14,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## v2.9.3 - 2025-02-13
### Added
- Go 1.24 support by [@leaanthony](https://github.com/leaanthony)
### Fixed
- Now using `-buildvcs=false` build tag by default to remove `error obtaining VCS status: exit status 128` errors by [@leaanthony](https://github.com/leaanthony)
## v2.9.2 - 2024-09-18
### Fixed