Skip to content

Commit

Permalink
Fix build issues with no git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
leaanthony committed Feb 12, 2025
1 parent 998d33b commit 2afdf52
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2/cmd/wails/internal/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.9.2
v2.9.3
2 changes: 1 addition & 1 deletion v2/pkg/commands/bindings/bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 2 additions & 0 deletions v2/pkg/commands/build/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
9 changes: 9 additions & 0 deletions website/src/pages/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2afdf52

Please sign in to comment.