@@ -50,7 +50,7 @@ type System struct {
50
50
Checksum string `json:"checksum"`
51
51
}
52
52
53
- // Source: https://github.com/arduino/arduino-cli/blob/master/arduino/cores/tools.go#L129-L142
53
+ // Source: https://github.com/arduino/arduino-cli/blob/master/internal/ arduino/cores/tools.go#L129-L142
54
54
var (
55
55
regexpLinuxArm = regexp .MustCompile ("arm.*-linux-gnueabihf" )
56
56
regexpLinuxArm64 = regexp .MustCompile ("(aarch64|arm64)-linux-gnu" )
66
66
regexpFreeBSD64 = regexp .MustCompile ("amd64-freebsd[0-9]*" )
67
67
)
68
68
69
- // Source: https://github.com/arduino/arduino-cli/blob/master/arduino/cores/tools.go#L144-L176
69
+ // Source: https://github.com/arduino/arduino-cli/blob/master/internal/ arduino/cores/tools.go#L144-L176
70
70
func (s * System ) isExactMatchWith (osName , osArch string ) bool {
71
71
if s .Host == "all" {
72
72
return true
@@ -101,7 +101,7 @@ func (s *System) isExactMatchWith(osName, osArch string) bool {
101
101
return false
102
102
}
103
103
104
- // Source: https://github.com/arduino/arduino-cli/blob/master/arduino/cores/tools.go#L178-L198
104
+ // Source: https://github.com/arduino/arduino-cli/blob/master/internal/ arduino/cores/tools.go#L178-L198
105
105
func (s * System ) isCompatibleWith (osName , osArch string ) (bool , int ) {
106
106
if s .isExactMatchWith (osName , osArch ) {
107
107
return true , 1000
@@ -125,7 +125,7 @@ func (s *System) isCompatibleWith(osName, osArch string) (bool, int) {
125
125
}
126
126
127
127
// GetFlavourCompatibleWith returns the downloadable resource (System) compatible with the specified OS/Arch
128
- // Source: https://github.com/arduino/arduino-cli/blob/master/arduino/cores/tools.go#L206-L216
128
+ // Source: https://github.com/arduino/arduino-cli/blob/master/internal/ arduino/cores/tools.go#L206-L216
129
129
func (t * Tool ) GetFlavourCompatibleWith (osName , osArch string ) System {
130
130
var correctSystem System
131
131
maxSimilarity := - 1
0 commit comments