gradle-node-plugin icon indicating copy to clipboard operation
gradle-node-plugin copied to clipboard

System architecture aarch64 is not detected as arm

Open mugglmenzel opened this issue 6 years ago • 1 comments

Some devices with arm architecture are indicated by the java system property "os.arch" as aarch64 (e.g. the Coral Dev Board). However, the current arch detection mechanism in PlatformHelper would identify such a device (or OS) as x64: https://github.com/srs/gradle-node-plugin/blob/master/src/main/groovy/com/moowork/gradle/node/util/PlatformHelper.groovy#L59

Thereby the wrong nodejs version is downloaded and cannot be installed on those devices. The whole build process fails.

mugglmenzel avatar Sep 09 '19 08:09 mugglmenzel

We re-arranged the conditionals and added a startsWith('aarch') in the https://github.com/node-gradle/gradle-node-plugin fork, which should hopefully solve this

deepy avatar Sep 11 '19 18:09 deepy