GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow ForeignExe to support specifying a "wildcard version" `*` · Issue #2757 · diffplug/spotless

Allow ForeignExe to support specifying a "wildcard version" * #2757

New issue
Copy link
New issue
Copy link
Closed
Closed
Allow ForeignExe to support specifying a "wildcard version" *#2757
Copy link

Description

@kashev
kashev
opened on Nov 21, 2025
Issue body actions

My use-case is similar to what @devinrsmith asked for here - For my small team, I want to be able to opt into the risks/pitfalls of allowing developer machines to run slightly different versions of external formatters like black and shfmt.

Maintainer @nedtwigg said this on this issue:

You can specify 24.2.0 yourself. I'd be okay with a PR that adds support for setting the version to *, but I want users to explicitly say "I don't care which version", because otherwise we get issues when the formatting is one way on dev machines but failing on CI because of a version difference.

Originally posted by @nedtwigg in #674

I'm opening this issue to track implementing this.

Activity

  1. kashev commented on Nov 21, 2025

    @kashev
    kashev
    on Nov 21, 2025
    ContributorAuthor
    More actions

    I'd like to help implement this, if I can. As far as I can tell, the changes required are:

    • Update the conditional logic near the end of ForeignExe.confirmVersionAndGetAbsolutePath() to allow for a wildcard to be specified.
    • Update any relevant tests.
    • Update markdown-based documentation for both the gradle and maven plugin so that people know that this is a valid configuration, maybe with some scary language that discourages its use since it can lead to "works on my machine" problems. The files that I have on my radar for this are:
      • The maven plugin README.md
      • The gradle plugin README.md
    • Update the CHANGES.md files for both plugins, as well as the top-level spotless lib one to mention this.

    Am I missing anything?

  2. nedtwigg commented on Nov 22, 2025

    @nedtwigg
    nedtwigg
    on Nov 22, 2025
    Member
    More actions
    • Allow foreign executables to explicitly specify "use any found version" with '*' #2758
  3. kashev
    closed this as completedon Nov 23, 2025
  4. jpraet commented on Feb 3, 2026

    @jpraet
    jpraet
    on Feb 3, 2026
    Contributor
    More actions

    Doesn't work for me:

    black(java.lang.RuntimeException) You specified version *, but Spotless found 19.10b0 (...)
    

    See #2758 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.