lift / framework

Lift Framework
http://liftweb.net
Apache License 2.0
1.27k stars 280 forks source link

The build lift instructions in Readme don't work #1996

Open bledari opened 2 years ago

bledari commented 2 years ago

The build lift instructions in Readme don't work

git clone https://github.com/lift/framework.git cd framework ./liftsh +update +publish

dpp commented 2 years ago

It seems that dl.bintray.com is giving a 500 which indicates problems with the bintray.

Please give it a few hours for the error to clear up (this is beyond this project or the ability of this project to influence)

dpp commented 2 years ago

Okay... I pointed the script to a different download site for sbt:

diff --git a/liftsh b/liftsh
index f96e94f0..3b7f6559 100755
--- a/liftsh
+++ b/liftsh
@@ -2,8 +2,8 @@

 # Make sure to change the name of the launcher jar and the source when bumping sbt version
 # so that the existence test below fails and we download the new jar.
-SBT_LAUNCHER_PATH="project/sbt-launch-0.13.15.jar"
-SBT_LAUNCHER_SOURCE="https://dl.bintray.com/sbt/native-packages/sbt/0.13.15/sbt-0.13.15.tgz"
+SBT_LAUNCHER_PATH="project/sbt-launch-0.13.18.jar"
+SBT_LAUNCHER_SOURCE="https://github.com/sbt/sbt/releases/download/v0.13.18/sbt-0.13.18.tgz"

 # Download the sbt launcher on-the-fly if it's not already in the repository.
 if test ! -f $SBT_LAUNCHER_PATH; then

Getting another error:

[info] welcome to sbt 1.3.12 (Ubuntu Java 11.0.14)
[info] loading settings for project root from plugins.sbt ...
Cloning into '/home/dpp/.sbt/1.0/staging/a6a77c219d2001172bee/sbt-lift-build'...
fatal: remote error: 
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
[error] Nonzero exit code (128): git clone git://github.com/lift/sbt-lift-build.git /home/dpp/.sbt/1.0/staging/a6a77c219d2001172bee/sbt-lift-build
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q

Anyone (e.g., @Shadowfiend @andreak @farmdawgnation ) got clues as to how to work around this issue?

andreak commented 2 years ago

According to https://stackoverflow.com/questions/70663523/the-unauthenticated-git-protocol-on-port-9418-is-no-longer-supported ... you cannot use the old git:// protocol anymore, so you have to use https or ssh. To convert existing git://-URLs to https:

git config --global url."https://".insteadOf git://

To convert to ssh:

git config --global url."git@github.com:".insteadOf git://github.com/

Hope this helps.