Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin does not work on Linux aarch64 #162

Open
hlinus opened this issue Sep 28, 2022 · 0 comments
Open

Plugin does not work on Linux aarch64 #162

hlinus opened this issue Sep 28, 2022 · 0 comments

Comments

@hlinus
Copy link

hlinus commented Sep 28, 2022

Thanks for making this great plugin!

Unfortunately this plugin seems not to work on Linux aarch64 (Asahi Linux/Linux VMs on Apple silicon).

        at org.gradle.api.internal.project.taskfactory.TaskFactory$1.call(TaskFactory.java:95)
        at org.gradle.api.internal.project.taskfactory.TaskFactory$1.call(TaskFactory.java:82)
        at org.gradle.util.internal.GUtil.uncheckedCall(GUtil.java:454)
        at org.gradle.api.internal.AbstractTask.injectIntoNewInstance(AbstractTask.java:202)
        at org.gradle.api.internal.project.taskfactory.TaskFactory.create(TaskFactory.java:82)
        at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory.create(AnnotationProcessingTaskFactory.java:48)
        at org.gradle.api.internal.tasks.DefaultTaskContainer.createTask(DefaultTaskContainer.java:322)
        at org.gradle.api.internal.tasks.DefaultTaskContainer.access$200(DefaultTaskContainer.java:76)
        at org.gradle.api.internal.tasks.DefaultTaskContainer$2.call(DefaultTaskContainer.java:296)
        ... 209 more
Caused by: java.lang.IllegalStateException: Cannot determine operating system name and version
        at org.unbrokendome.gradle.pluginutils.SystemUtils.getOperatingSystemClassifier(SystemUtils.kt:27)
        at org.unbrokendome.gradle.plugins.helm.command.tasks.HelmDownloadClientPackage.<init>(HelmDownloadClientPackage.kt:63)
        at org.unbrokendome.gradle.plugins.helm.command.tasks.HelmDownloadClientPackage_Decorated.<init>(Unknown Source)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator$InvokeConstructorStrategy.newInstance(AsmBackedClassGenerator.java:2070)
        at org.gradle.internal.instantiation.generator.AbstractClassGenerator$GeneratedClassImpl$GeneratedConstructorImpl.newInstance(AbstractClassGenerator.java:486)
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:64)
        at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.newInstanceWithDisplayName(DependencyInjectingInstantiator.java:50)
        at org.gradle.api.internal.project.taskfactory.TaskFactory$1.call(TaskFactory.java:88)
        ... 217 more

Java properties settings:

os.arch = aarch64
os.name = Linux

Overriding the osClassifier has no effect (because the plugin tries to set a default value in the constructor?)

# gradle.properties
helm.client.download.osClassifier=linux-arm64

I think a simple solution is to add a aarch64 entry in https://github.com/unbroken-dome/gradle-plugin-utils/blob/master/gradle-plugin-utils/src/main/kotlin/org/unbrokendome/gradle/pluginutils/SystemUtils.kt#L19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant