Skip to content

Commit b075978

Browse files
authored
Revert "chore: detect if it is arm64 (#318)" (#320)
This reverts commit 009369a.
1 parent 009369a commit b075978

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cmd/get.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package cmd
33
import (
44
"context"
55
"fmt"
6-
"internal/goarch"
76
"net/http"
87
"net/url"
98
sysos "os"
@@ -128,22 +127,11 @@ func (o *downloadOption) fetch() (err error) {
128127
return
129128
}
130129

131-
func (o *downloadOption) archFix() {
132-
if o.Arch != "arm" {
133-
return
134-
}
135-
136-
if goarch.IsArm64 == 1 {
137-
o.Arch = "arm64"
138-
}
139-
}
140-
141130
func (o *downloadOption) preRunE(cmd *cobra.Command, args []string) (err error) {
142131
// this might not be the best way to print schema
143132
if o.PrintSchema {
144133
return
145134
}
146-
o.archFix()
147135

148136
if err = o.fetch(); err != nil {
149137
return

0 commit comments

Comments
 (0)