You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrading apache-sshd from 1.7.0 to 2.1.0 produces these compilation errors:
...
100,0% [##########] 8,4 MiB (2,2 MiB / s)
https://repo1.maven.org/maven2/org/apache/sshd/apache-sshd/2.1.0/apache-sshd-2.1.0.tar.gz
100,0% [##########] 8,4 MiB (1,5 MiB / s)
[info] Fetched artifacts of root
[info] Compiling 284 Scala sources and 3 Java sources to /home/uli/git/forked/gitbucket/target/scala-2.12/classes ...
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/SshServerListener.scala:20:55: type mismatch;
[error] found : java.io.File
[error] required: java.nio.file.Path
[error] val provider = new SimpleGeneratorHostKeyProvider(new File(s"${Directory.GitBucketHome}/gitbucket.ser"))
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/GitCommand.scala:8:8: object Command is not a member of package org.apache.sshd.server
[error] import org.apache.sshd.server.{Command, CommandFactory, Environment, ExitCallback, SessionAware}
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/GitCommand.scala:233:74: not found: type CommandFactory
[error] class GitCommandFactory(baseUrl: String, sshUrl: Option[String]) extends CommandFactory {
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/SshServerListener.scala:26:7: type mismatch;
[error] found : gitbucket.core.ssh.GitCommandFactory
[error] required: org.apache.sshd.server.command.CommandFactory
[error] new GitCommandFactory(baseUrl, Some(s"${sshAddress.genericUser}@${sshAddress.host}:${sshAddress.port}"))
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/NoShell.scala:5:8: object Command is not a member of package org.apache.sshd.server
[error] import org.apache.sshd.server.{Environment, ExitCallback, Command}
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/NoShell.scala:9:55: not found: type Command
[error] class NoShell(sshAddress: SshAddress) extends Factory[Command] {
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/plugin/Plugin.scala:11:8: object Command is not a member of package org.apache.sshd.server
[error] import org.apache.sshd.server.Command
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/plugin/Plugin.scala:312:56: not found: type Command
[error] val sshCommandProviders: Seq[PartialFunction[String, Command]] = Nil
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/plugin/Plugin.scala:321:34: not found: type Command
[error] ): Seq[PartialFunction[String, Command]] = Nil
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/plugin/PluginRegistry.scala:27:8: object Command is not a member of package org.apache.sshd.server
[error] import org.apache.sshd.server.Command
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/plugin/PluginRegistry.scala:62:87: not found: type Command
[error] private val sshCommandProviders = new ConcurrentLinkedQueue[PartialFunction[String, Command]]()
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/plugin/PluginRegistry.scala:190:73: not found: type Command
[error] def addSshCommandProvider(sshCommandProvider: PartialFunction[String, Command]): Unit =
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/plugin/PluginRegistry.scala:193:59: not found: type Command
[error] def getSshCommandProviders: Seq[PartialFunction[String, Command]] = sshCommandProviders.asScala.toSeq
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/GitCommand.scala:18:8: object UnknownCommand is not a member of package org.apache.sshd.server.scp
[error] import org.apache.sshd.server.scp.UnknownCommand
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/GitCommand.scala:26:35: not found: type Command
[error] abstract class GitCommand extends Command with SessionAware {
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/GitCommand.scala:236:48: not found: type Command
[error] override def createCommand(command: String): Command = {
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/GitCommand.scala:255:25: not found: type UnknownCommand
[error] case _ => new UnknownCommand(command)
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/NoShell.scala:10:26: not found: type Command
[error] override def create(): Command = new Command() {
[error] ^
[error] /home/uli/git/forked/gitbucket/src/main/scala/gitbucket/core/ssh/NoShell.scala:10:40: not found: type Command
[error] override def create(): Command = new Command() {
[error] ^
[error] 19 errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 190 s, completed 05.10.2018 12:08:52
Upgrading apache-sshd from 1.7.0 to 2.1.0 produces these compilation errors:
Here the diff relative to current master:
I'll probably have a look at the issue within the upcoming days...
The text was updated successfully, but these errors were encountered: