Skip to content

Commit

Permalink
chore: fix install.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy committed Aug 10, 2023
1 parent 5f78653 commit 5056621
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kclvm_artifact

import (
"fmt"
"os"
"os/exec"
"path/filepath"
Expand All @@ -17,7 +18,7 @@ func findPath(name string) string {
}

func getVersion() string {
return getVersion()
return fmt.Sprintf("%s-%s-%s", KCLVM_VERSION, runtime.GOOS, runtime.GOARCH)
}

func checkVersion(kclvmVersionDir string) (bool, error) {
Expand Down

0 comments on commit 5056621

Please sign in to comment.