Skip to content

Commit a1f827f

Browse files
committed
Fix for “goversioninfo” since Go version 1.26.0
golang/go#77783
1 parent 4c8dc5a commit a1f827f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate goversioninfo
1+
//go:generate goversioninfo -64
22

33
package main
44

build.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SET filename=GoInterruptPolicy
77
:loop
88
CLS
99

10-
gocritic check -enableAll -disable="#experimental,#opinionated,#commentedOutCode" ./...
10+
go-critic check -enableAll -disable="#experimental,#opinionated,#commentedOutCode" ./...
1111

1212
IF exist %filename%.exe (
1313
FOR /F "usebackq" %%A IN ('%filename%.exe') DO SET /A beforeSize=%%~zA
@@ -16,7 +16,7 @@ IF exist %filename%.exe (
1616
)
1717

1818
: Build https://golang.org/cmd/go/
19-
go build -tags debug -buildvcs=false -o %filename%_debug.exe
19+
@REM go build -tags debug -buildvcs=false -o %filename%_debug.exe
2020
go build -ldflags="-w -s -H windowsgui" -o %filename%.exe
2121

2222
FOR /F "usebackq" %%A IN ('%filename%.exe') DO SET /A size=%%~zA

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/spddl/GoInterruptPolicy
22

3-
go 1.25.4
3+
go 1.26.0
44

55
require (
66
github.com/intel-go/cpuid v0.0.0-20220614022739-219e067757cb

resource.syso

-16 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)