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
scala / sbt 1.x support #9816
Comments
I opened PRs at travis-ci/travis-build#1423 and travis-ci/travis-cookbooks#987; hoping this is the right procedure to see an updated version from within Travis CI. |
sbt 1 was working fine on Travis CI until recently. How did this regression happen? |
This is a workaround for Travis CI is using an old cut of sbt-extras, which prevents the use of sbt 1 published on Maven Central. Ref travis-ci/travis-ci#9816
sbt has a couple different places that it looks for jars depending on the sbt version requested. It's conceivable that sbt 1 jars were hosted at an old location as well as a new location but then were removed from the old location? And then maybe the regression happened because the old version of sbt-extras in the travis installation didn't know about the new location, and thus couldn't find anything. Just a guess. |
No URLs have changed. Where has the regression happened? What was the trigger for this issue, at this time? |
The version of sbt-extras I find in Travis CI's /usr/local/bin/sbt, which at the time of this writing is this version, tries to download unknown versions of sbt from: More recent versions try to download unknown versions of sbt from: I submitted this PR in the hopes of fixing it, but it hasn't been merged: https://github.com/travis-ci/travis-cookbooks/pull/987/files I'm surprised to hear that it worked until recently, because if https://github.com/travis-ci/travis-cookbooks/blob/master/cookbooks/travis_sbt_extras/attributes/default.rb#L5 is indeed the source of the installed version of sbt-extras, it's been in place since 2015. My only other guess was that maybe the contents of dl.bintray.com had changed recently to trigger the regression. |
Something doesn't add up in what you state. Here's a counter-example from a small, semi-recent project. In February it quite happily downloaded the sbt 1.1.1 launcher jar:
https://travis-ci.org/dwijnand/sbt-reloadquick/builds/339788631 |
I don't know. In June, on our project, it wasn't happy.
https://travis-ci.org/unisonweb/unison/jobs/397374219#L2264-L2267 and it's no better today, please feel free to scrutinize this travis-ci debug session:
https://travis-ci.org/unisonweb/unison/jobs/407825021/config If I download the latest manually, it works as expected:
|
This is a workaround for Travis CI is using an old cut of sbt-extras, which prevents the use of sbt 1 published on Maven Central. Ref travis-ci/travis-ci#9816
This is a workaround for Travis CI is using an old cut of sbt-extras, which prevents the use of sbt 1 published on Maven Central. Ref travis-ci/travis-ci#9816
This is a workaround for Travis CI is using an old cut of sbt-extras, which prevents the use of sbt 1 published on Maven Central. Ref travis-ci/travis-ci#9816
This is a workaround for Travis CI is using an old cut of sbt-extras, which prevents the use of sbt 1 published on Maven Central. Ref travis-ci/travis-ci#9816
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 7 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed, or open a new one after. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
FYI: We fetch https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt at deployment time, and this file will be served by |
Hello, We're moving our community communications to the Travis CI Community Forum and will no longer be supporting GitHub issues. If this hasn't been solved, please go ahead and create a new thread on the Forum and we'll be better able to help you there. We're looking forward to seeing you there. If you need support, you can reach our support team here: support@travis-ci.com. Thanks and happy building! |
I've started a thread Recurrent Scala build environment regression around sbt-extras (Download failed. Obtain the jar manually) on the forum. |
In case someone stumbles here because they can't resolve sbt 1.x, check your
I was missing |
If anyone knows how to remove or update the sbt-extras script in the base/ruby image, I'd be happy to do the work. |
Travis CI uses paulp/sbt-extras as its sbt launcher.
sbt-extras versions before May 9, 2016 don't support sbt 1.x (they don't know the right URL to download updates from), and the version on Travis (
dist: trusty
) is from Aug 19, 2015.Can you update the version on Travis CI?
The text was updated successfully, but these errors were encountered: