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

Enable using the latest master snapshot version of ktlint #281

Closed
wants to merge 4 commits into from

Conversation

hosamaly
Copy link

I was trying to follow the instructions to use the latest master snapshot of ktlint today, but I saw the error about versions less than 0.22 not being supported.

This PR enables the use of master snapshots and treats it as the latest version, even though it's original version is 0.0.

Copy link
Owner

@JLLeitschuh JLLeitschuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few small things. Other than that, this looks good. @Tapchicoma anything from you?

@hosamaly
Copy link
Author

For some reason, commit 24d2032 caused the build to fail. I'm fairly new to Kotlin, so I can't see what in the diff could cause that failure. I couldn't reproduce the issue on my machine.

Could you please help me understand what's wrong with that commit?

@JLLeitschuh
Copy link
Owner

I just restarted the build, we'll see what's up.

@Tapchicoma
Copy link
Collaborator

I would say, that this is more ktlint problem itself. As far as I know it was fixed in Gradle build, but still the issue in the maven builds.

* master:
  Add support to disable particular rules via plugin extension.
  Set default ktlint version to 0.34.2.
@hosamaly
Copy link
Author

It looks like the build is happy now. (!)

I merged from master to resolve the conflict. How does it look now?

@JLLeitschuh
Copy link
Owner

@Tapchicoma how do you want to resolve this?

@Tapchicoma
Copy link
Collaborator

@hosamaly I would propose to not merge it for now, if it is not urgent.

@shashachu will recheck again if Gradle could be used to publish artifacts on this weekend.

@jacquerie
Copy link

jacquerie commented Sep 23, 2019

FWIW we were also hit by this. Is there anything I can do to help get this merged?

@Tapchicoma
Copy link
Collaborator

@jacquerie
Copy link

@hosamaly @jacquerie snapshot with proper versioning was published: https://oss.sonatype.org/content/repositories/snapshots/com/pinterest/ktlint/0.35.0-SNAPSHOT/

Cool, that works for us! Thanks a lot, @Tapchicoma !

@Tapchicoma
Copy link
Collaborator

@hosamaly sorry for not merging this PR, but proper approach would be to fix snapshots versioning in ktlint repository itself, that is done via pinterest/ktlint#588.

Thank you anyway for this PR and raising this problem!

@Tapchicoma Tapchicoma closed this Sep 25, 2019
@hosamaly
Copy link
Author

No worries. Thank you for fixing the root cause.

@hosamaly hosamaly deleted the support-master-snapshot branch September 25, 2019 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.

4 participants