-
Notifications
You must be signed in to change notification settings - Fork 14
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
travis/default.yml
doesn't work with sbt 1.4.8
#765
Comments
I assume the problem here is that Travis-CI provides an outdated version of sbt-extras one thing we could do is report that upstream and hope they fix it, but actually I think we ought not to be using sbt-extras at all, we ought to be using the official sbt launch script |
@xuwei-k fixed this already! dwijnand/sbt-extras#305 ok so you're right. It's a problem with sbt-extras, which is now fixed. |
perhaps I ought to first do a more minimal fix where I grab the latest sbt-extras and overwrite the Travis-CI one and then separately consider whether to get off sbt-extras. if sbt-extras is the Travis default, then it might be surprising and/or breaking for some downstream users for us to have a different default here |
I verified at lightbend-labs/scala-sculpt#142 that the fix works |
I thought about just always using the latest sbt-extras, but it seems better to me to stick with a fixed version unless/until a need for an upgrade arises. partly for predictability/stability reasons, and partly because compromising paulp/sbt-extras is a potential attack vector |
@eed3si9n I don't know if this is the "best" fix, but I wanted to get some kind of fix out there right away you might want to publicize some kind of recommended fix? not sure if this is the one you want to publicize. |
It doesn't seem to be enough to hit "restart" in the Travis-CI web UI for the new version to be picked up. Adding an empty commit works. 🤷 |
I've updated https://eed3si9n.com/sbt-1.4.8 with the instruction on how to swap out |
As we control https://repo.scala-sbt.org/scalasbt/maven-releases/, can't we get that to redirect the GET for 1.4.8 to maven central, thus avoiding that breakage? |
That's true. https://repo.scala-sbt.org/scalasbt/maven-releases/ can just redirect anything under it to Maven Central. |
@eed3si9n I like that your solution uses the official launch script rather than sbt-extras, but I'm a bit uncomfortable with how it grabs an entire tarball just to extract one file from it. That's not the worst thing in the world, but if the launch script were independently downloadable, that would be advantageous. Overall I'm not an sbt-extras booster, but it's pretty nice that you can just get the script by itself. |
The official launcher includes Bash script, sbt-launch.jar, sbtn binary, all in one tar ball. This eliminates the "where is sbt-launcher this month" problem. |
oh, I see, sorry. okay, yours is better, then. |
I've opened #766 proposing we adopt your solution. |
Just like the tar ball is at https://github.com/sbt/sbt/releases/ (now), sbt-extras is at https://github.com/paulp/sbt-extras/ and has been for more than a few months. The problem is that the new sbt release changed its publishing while Travis CI is using an old version of sbt-extras. |
I've used the following to deal with the breakage: before_install:
- |
curl -Ls https://git.io/sbt -o sbt || travis_terminate 1
chmod 0755 sbt || travis_terminate 1
sudo mv sbt /usr/local/bin/sbt || travis_terminate 1 |
So I had a look and tried about 6 different interesting/weird modules under maven-releases and found them on Maven Central, but I wanted to ask you: do you think there's anything under maven-releases that isn't on maven central? That way I can ask internally to setup the redirect. |
(as for the likelihood of getting Travis-CI on a newer sbt-extras, Dale notes that:
so there is at least some grounds for optimism that another version bump PR would be merged. perhaps the 2018 PR would have been merged too if we'd done a bit more upvoting and nagging) |
No. I've never used maven-releases on Bintray as actual repo. They should all be synced to Maven Central. |
the
travis/default.yml
in this repo, which lots of repos inside and outside the Scala org use, doesn't work with sbt 1.4.8thus many of the Scala Steward's sbt 1.4.8 upgrade PRs are failing
The text was updated successfully, but these errors were encountered: