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

build(deps): update underlying ktlint to 0.47.x #11661

Closed
wants to merge 3 commits into from

Conversation

mikehardy
Copy link
Member

@mikehardy mikehardy commented Jun 19, 2022

Pull Request template

Purpose / Description

ktlint-gradle supports new ktlint underlying versions now

It still transitively pulls in a ktlint version with a memory leak though (0.43.2) I checked - so we still need the override

ktlint underlying is at 0.48.2: https://github.com/pinterest/ktlint/releases

But ktlint-gradle does not quite handle that yet: JLLeitschuh/ktlint-gradle#622

It goes without saying that this is not a high priority, but it is also just a big spacing diff for the most part so, 🤷

The only part of the diff which is an actual change is the build.gradle version change here: 5f7ceda#diff-49a96e7eea8a94af862798a45174e6ac43eb4f8b4bd40759b5da63ba31ec3ef7
(transitively because of this: https://pinterest.github.io/ktlint/faq/#why-is-editorconfig-property-disabled_rules-deprecated-and-how-do-i-resolve-this)

So this updates us to 0.47.1 which is much more modern ktlint, but not the latest to avoid the upstream issue 622, and it does a format on the codebase to pull it up to standards

@mikehardy mikehardy added the Blocked by dependency Currently blocked by some other dependent / related change label Jun 19, 2022
@mikehardy mikehardy force-pushed the dependency-updates branch from d1bb4be to 86b044d Compare June 19, 2022 14:43
@mikehardy mikehardy force-pushed the dependency-updates branch from 7c8551b to 5cc8d24 Compare July 4, 2022 17:29
@mikehardy mikehardy force-pushed the dependency-updates branch 2 times, most recently from c77afbb to d02093d Compare July 27, 2022 14:25
@mikehardy mikehardy force-pushed the dependency-updates branch 2 times, most recently from fea352b to ec36137 Compare August 17, 2022 14:18
@mikehardy
Copy link
Member Author

upstream still blocked

@mikehardy mikehardy marked this pull request as draft August 19, 2022 01:24
@mikehardy mikehardy force-pushed the dependency-updates branch 2 times, most recently from aca40a4 to f5a634f Compare August 26, 2022 11:39
@mikehardy mikehardy force-pushed the dependency-updates branch 2 times, most recently from b71495f to 380715b Compare September 15, 2022 16:47
@mikehardy mikehardy force-pushed the dependency-updates branch 2 times, most recently from 73838c4 to 77a2279 Compare September 29, 2022 17:26
@mikehardy mikehardy force-pushed the dependency-updates branch 3 times, most recently from 5b7c6a3 to 7b544b8 Compare October 30, 2022 18:12
@mikehardy mikehardy force-pushed the dependency-updates branch 3 times, most recently from 768e524 to 0d2cd00 Compare November 15, 2022 14:02
@mikehardy mikehardy force-pushed the dependency-updates branch 2 times, most recently from bac7c1a to 2fa5c1d Compare December 4, 2022 18:35
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2023

Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically

@github-actions github-actions bot added Stale and removed Stale labels Feb 2, 2023
Bumps [com.fasterxml.jackson.core:jackson-databind](https://github.com/FasterXML/jackson) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/FasterXML/jackson/releases)
- [Commits](https://github.com/FasterXML/jackson/commits)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson.core:jackson-databind
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps org.jlleitschuh.gradle:ktlint-gradle from 11.0.0 to 11.1.0.

---
updated-dependencies:
- dependency-name: org.jlleitschuh.gradle:ktlint-gradle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@mikehardy mikehardy added Needs Review and removed Blocked by dependency Currently blocked by some other dependent / related change labels Feb 6, 2023
@mikehardy mikehardy marked this pull request as ready for review February 6, 2023 15:36
@mikehardy mikehardy changed the title build(deps): update underlying ktlint to 0.46 build(deps): update underlying ktlint to 0.47.x Feb 6, 2023
ktlint slowly improves detection of things apparently (or changes rules?),
and as you update it across their zero-based semver majors you have to reformat
@mikehardy
Copy link
Member Author

Fascinating! ktlint complained that java.util.CancellationException was an unused import, because there was an import of java.util.* immediately above it, but then we get this:


> Task :AnkiDroid:compilePlayDebugKotlin FAILED
e: /Users/runner/work/Anki-Android/Anki-Android/AnkiDroid/src/main/java/com/ichi2/anki/servicelayer/SchedulerService.kt: (236, 26): Unresolved reference: CancellationException
e: /Users/runner/work/Anki-Android/Anki-Android/AnkiDroid/src/main/java/com/ichi2/anki/servicelayer/SchedulerService.kt: (237, 24): Overload resolution ambiguity: 
public open fun i(message: String?, vararg args: Any?): Unit defined in timber.log.Timber.Forest
public open fun i(t: Throwable?, message: String?, vararg args: Any?): Unit defined in timber.log.Timber.Forest

So something in here is subtle and needs a little untangle.

This is not a high priority, just putting it here for future effort as available

@mikehardy mikehardy marked this pull request as draft February 6, 2023 17:33
@mikehardy mikehardy force-pushed the dependency-updates branch 3 times, most recently from b94ffa5 to a06e727 Compare February 19, 2023 17:17
@mikehardy mikehardy deleted the ktlint-46 branch April 6, 2023 19:47
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

Successfully merging this pull request may close these issues.

2 participants