Skip to content

Commit

Permalink
fix: arm64 file add a new line
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed May 13, 2024
1 parent 4fadce6 commit b9b227c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
go: [ "1.18", "1.19", "1.20", "1.21" ]
os: [ X64 ]
os: [ X64, ARM64 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion g_arm64.s
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
TEXT ·getg(SB), NOSPLIT, $0-8
MOVD g, R8
MOVD R8, ret+0(FP)
RET
RET
3 changes: 1 addition & 2 deletions runtimex.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package runtimex

import (
"errors"
"fmt"
"runtime"
"unsafe"
Expand All @@ -28,7 +27,7 @@ var (
gType reflect2.StructType
gidField reflect2.StructField

ErrNotSupported = errors.New(fmt.Sprintf("%s is not supported", runtime.Version()))
ErrNotSupported = fmt.Errorf("%s is not supported", runtime.Version())
)

func init() {
Expand Down

0 comments on commit b9b227c

Please sign in to comment.