Skip to content

Sparse checkouts broken by spotless lint #13327

@LetianLi

Description

@LetianLi

Describe why this should be added

PR #13170 added spotless to linting, which I believe broke builds in sparse checkouts. Specifically, the ratcheting seems to be causing the issue. This means contributors need to clone the entire repo which slows development.

If spotless ratcheting is to be used only in CI, it might be better to gate the ratchetFrom inside keiyoshi.lint.gradle.kts with

if (System.getenv("CI") == "true") {
    ratchetFrom = "68ed874a42038f4efd001c555cba9bf7de8474d7"
}

Other details

I'm getting the following error for the tasks spotlessGradle, spotlessKotlin, spotlessXml whenever I try to build an extension.

> org.eclipse.jgit.errors.CorruptObjectException: Invalid path: .github/

Acknowledgements

  • I have searched existing issues both open & closed, and confirm that this is a new unreported issue.
  • I have written a short but informative title.
  • If this is an issue with the app itself, I should be opening an issue in the app repository.
  • I have updated the app to version 0.19.3.
  • I have updated the extension to the latest version (as listed on the extensions listing page).
  • I will correctly fill out all of the requested information in this form.


Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions