File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import (
3131 rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
3232 "github.com/arduino/go-paths-helper"
3333 "github.com/spf13/cobra"
34+ semver "go.bug.st/relaxed-semver"
3435)
3536
3637func initInstallCommand () * cobra.Command {
@@ -64,7 +65,8 @@ func runInstallCommand(cmd *cobra.Command, args []string) {
6465 if installFlags .zipPath || installFlags .gitURL {
6566 if ! configuration .Settings .GetBool ("library.enable_unsafe_install" ) {
6667 documentationURL := "https://arduino.github.io/arduino-cli/latest/configuration/#configuration-keys"
67- if ! strings .Contains (globals .VersionInfo .VersionString , "git" ) {
68+ _ , err := semver .Parse (globals .VersionInfo .VersionString )
69+ if err == nil {
6870 split := strings .Split (globals .VersionInfo .VersionString , "." )
6971 documentationURL = fmt .Sprintf ("https://arduino.github.io/arduino-cli/%s.%s/configuration/#configuration-keys" , split [0 ], split [1 ])
7072 }
You can’t perform that action at this time.
0 commit comments