Skip to content

Cannot install latest rubocop #8727

@boris-petrov

Description

@boris-petrov

Environment Information

Provide at least:

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc) - 9.4.12.0
  • Operating system and platform - Arch Linux
plugins {
	id 'org.ysb33r.jruby.base' version '2.0.0'
	id 'org.ysb33r.jruby.resolver' version '2.0.0'
}

import org.ysb33r.gradle.jruby.api.base.tasks.JRubyExec
import org.ysb33r.gradle.jruby.api.base.tasks.JRubyPrepare

jruby.jrubyVersion = '9.4.12.0'

repositories {
	mavenCentral()
	ruby.gems()
}

gemConfigurations {
	register('rubocop', JRubyPrepare, JRubyExec, 'rubocop')
}

configurations {
	rubocop
}

dependencies {
	rubocop 'rubygems:rubocop:1.74.0'
}

def inputFiles = fileTree('.').include('**/*.rb').exclude('build').files.toList()

tasks.named('rubocop').configure {
	inputs.files(inputFiles + ['.rubocop.yml'])
	outputs.upToDateWhen { true }

	script {
		name = 'rubocop'
		args(*inputFiles)
	}
}

Running gradle rubocop (Gradle 8.13, Java 23) on Linux blows up:

Building native extensions. This could take a while...
ERROR:  Error installing /home/boris/.gradle/caches/modules-2/files-2.1/rubygems/prism/1.4.0/e272fe856b7a2bb4cbb20b35b10704e9fe3fd2e8/prism-1.4.0.gem:
        ERROR: Failed to build gem native extension.

Some discussion could be found in a similar issue from before.

cc @enebo, @headius

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions