Skip to content

Commit b1f23e6

Browse files
committed
Remove windows arm64 to fix compile issue
1 parent b8fa578 commit b1f23e6

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.goreleaser.yml

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ builds:
1313
- amd64
1414
- arm
1515
- arm64
16+
ignore:
17+
-
18+
goos: windows
19+
goarch: arm64
1620
release:
1721
name_template: "{{.ProjectName}}-v{{.Version}}"
1822
brews:

console_other.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
package main
44

5-
func setupWindowsConsole() error {
5+
func setupWindowsConsole(stdoutFd int) error {
66
return nil
77
}

console_windows.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import "golang.org/x/sys/windows"
44

5-
func setupWindowsConsole() error {
5+
func setupWindowsConsole(stdoutFd int) error {
66
console := windows.Handle(stdoutFd)
77
var originalMode uint32
88
windows.GetConsoleMode(console, &originalMode)

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func main() {
3838
// Setting Console mode on windows to allow color output, By default scheme is DefaultColorScheme
3939
// But in case of any error, it is set to ColorScheme{}.
4040
scheme := formatter.DefaultColorScheme
41-
if err := setupWindowsConsole(); err != nil {
41+
if err := setupWindowsConsole(stdoutFd); err != nil {
4242
scheme = formatter.ColorScheme{}
4343
}
4444
var stdout io.Writer = os.Stdout

0 commit comments

Comments
 (0)