File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import (
31
31
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
32
32
"github.com/arduino/go-paths-helper"
33
33
"github.com/spf13/cobra"
34
+ semver "go.bug.st/relaxed-semver"
34
35
)
35
36
36
37
func initInstallCommand () * cobra.Command {
@@ -64,7 +65,8 @@ func runInstallCommand(cmd *cobra.Command, args []string) {
64
65
if installFlags .zipPath || installFlags .gitURL {
65
66
if ! configuration .Settings .GetBool ("library.enable_unsafe_install" ) {
66
67
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 {
68
70
split := strings .Split (globals .VersionInfo .VersionString , "." )
69
71
documentationURL = fmt .Sprintf ("https://arduino.github.io/arduino-cli/%s.%s/configuration/#configuration-keys" , split [0 ], split [1 ])
70
72
}
You can’t perform that action at this time.
0 commit comments