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

Regular expression for matching black exe version is not valid for old black release #1195

Closed
jpraet opened this issue May 5, 2022 · 1 comment · Fixed by #1197
Closed
Labels

Comments

@jpraet
Copy link
Contributor

jpraet commented May 5, 2022

The regular expression was modified in #1178 to match the new version format, but no longer works for the previous format.

10:29:19  [ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.22.4:apply (default) on project buildtools: Execution default of goal com.diffplug.spotless:spotless-maven-plugin:2.22.4:apply failed: You specified version 19.10b0, but Spotless found version
10:29:19  [ERROR] Try running {@code pip install --force-reinstall black==19.10b0}, or else specify {@code black('version')} to Spotless
10:29:19  [ERROR]   github issue to handle this better: https://github.com/diffplug/spotless/issues/674
10:29:19  [ERROR] > arguments: [/usr/local/bin/black, --version]
10:29:19  [ERROR] > exit code: 0
10:29:19  [ERROR] >    stdout: black, version 19.10b0
10:29:19  [ERROR] >    stderr: (empty)
10:29:19  [ERROR] -> [Help 1]
  • Apache Maven 3.8.4
  • spotless-maven-plugin 2.22.4
@nedtwigg
Copy link
Member

Fixed in plugin-gradle 6.6.0 and plugin-maven 2.22.5.

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

Successfully merging a pull request may close this issue.

2 participants