We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71c587a commit 009369aCopy full SHA for 009369a
cmd/get.go
@@ -3,6 +3,7 @@ package cmd
3
import (
4
"context"
5
"fmt"
6
+ "internal/goarch"
7
"net/http"
8
"net/url"
9
sysos "os"
@@ -127,11 +128,22 @@ func (o *downloadOption) fetch() (err error) {
127
128
return
129
}
130
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
141
func (o *downloadOption) preRunE(cmd *cobra.Command, args []string) (err error) {
142
// this might not be the best way to print schema
143
if o.PrintSchema {
144
145
146
+ o.archFix()
147
148
if err = o.fetch(); err != nil {
149
0 commit comments