Skip to content

Commit 3133770

Browse files
committed
feat: add arch and os in the version string
1 parent fd8c41d commit 3133770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package kclvm_artifact
22

33
import (
4+
"fmt"
45
"os"
56
"os/exec"
67
"path/filepath"
@@ -37,7 +38,7 @@ func checkVersion(kclvmVersionDir string) (bool, error) {
3738
return false, err
3839
}
3940

40-
return KCLVM_VERSION == string(version), nil
41+
return fmt.Sprintf("%s-%s-%s", KCLVM_VERSION, runtime.GOOS, runtime.GOARCH) == string(version), nil
4142

4243
}
4344

0 commit comments

Comments
 (0)