-
Notifications
You must be signed in to change notification settings - Fork 161
Poor Man's MiMa #471
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
Poor Man's MiMa #471
Conversation
Hehe, yeah I typed that all out manually but it will be automated from here on. Hahaha 😆 Seriously though, once this is merged we should only see small (and clear) changes per PR. |
Yeah this is amazing!! Great iteration on last nights preview :D |
Sorry to rain on the parade ... does this support type aliases? I tried commenting out https://github.com/scala-js/scala-js-dom/blob/master/src/main/scala/org/scalajs/dom/package.scala#L7 and the entire API report vanished, except for the header :( |
Hehe, rain away! Better now than post-merge. It does support aliases but it seems the Also the reason it would've come out empty is cos I presume you did an incremental build? That's on my list of things to test and I think you just handed me a sad result. |
Ahh, oops! It was an incremental build. That must have been it, makes sense. It was working when I changed a return type though 🤔 |
@armanbilge Oh crap, something just came up that I need to do over the next few days. Can't believe it's the 11th already. If there's anything that I'm blocking you on just ping me and I'll prioritise that in the little sploshes of free time I get. |
Ok, I did a clean and re-compile, everything came back :) which unfortunately means no indication of the missing type alias :( |
Oh, no worries! Take the time you need. I'll go through the list of issues and triage :) |
Thanks! Also I just fixed the package object problem, thanks for catching it so fast |
Apparently package objects aren't considered public. 😕 |
Oh yeah, package objects are weird ... even if they extend a trait, you can't pass them as an instance of that trait :( |
Yup that seems to have fixed it!! Awesome! |
Hey @armanbilge , so in order for us to enforce that these are up to date, given current limitations this is what I'm thinking:
Sound good? |
👍 a few projects I contribute to have a |
Fantastic! In that case I'll go ahead with this and use |
#!/bin/bash | ||
set -euo pipefail | ||
cd "$(dirname "$0")" | ||
|
||
sed -i -e '/delete if Scala 2.10/d' *.sbt project/*.sbt | ||
rm scalafix.sbt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So terrible!! Do we even need to publish for 2.10 other than to be nice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah just being nice and preserving compat across the 1.x series. Really looking forward to the 2.x branch 😩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good to me! What's left?
- name: Validate api report | ||
if: matrix.scalajsversion == '1.x' && matrix.scalaversion != '2.11.12' | ||
run: ./api-reports/validate "${{ matrix.scalaversion }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is gonna be great!! :D
I wanna test it locally against some of the open PRs to confirm it's gonna work as expected, before we merge. You did a lot of work updating all of those PRs and I don't want us to have to do it again more than once :) |
@armanbilge oh awesome, you're online. This is ready when you are :) |
Yep, I'm just taking it for a quick spin in #445! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Magic!!! Never would have dreamt this up in a million years :)
Hahaha it's a gaffe-tape solution but it should make our lives easier. Ok cool thanks for the approval, merging! Let's goooooooooooo |
Generates API reports so that when we review PRs we can see a list of API changes. This covers the annoying case where a method is moved from one trait to another and it's hard to see which subtypes are affected.