Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auth fail when running `sbt new`

Tags:

sbt

giter8

Here's a transcript so far:

$ sbt new lagom/lagom-scala.g8
[info] Loading global plugins from /Users/abrahma/.sbt/1.0/plugins
[info] Set current project to lagomlife (in build file:/Users/abrahma/Bitbucket/Practice-Scala/LagomLife/)
[info] Set current project to lagomlife (in build file:/Users/abrahma/Bitbucket/Practice-Scala/LagomLife/)

ssh://[email protected]/lagom/lagom-scala.g8.git: Auth fail

I've verified authentication with GitHub:

$ ssh -T [email protected]
Hi agam! You've successfully authenticated, but GitHub does not provide shell access.

Also verified that I can access the repo in question (i.e. I can do the following, in a separate location):

git clone ssh://[email protected]/lagom/lagom-scala.g8.git

Edit: fwiw I'm able to work around whatever the root cause is here:

git clone ssh://[email protected]/lagom/lagom-scala.g8.git
g8 file:///Users/abrahma/tmp/lagom-scala.g8
like image 768
agam Avatar asked Dec 31 '19 08:12

agam


People also ask

How do I run SBT with multiple main methods?

When you’re running from inside the SBT shell, just add your parameters after the SBT run command, like this: That command will work even if you have multiple main methods (or App objects) in your SBT project: sbt> run foo bar baz [warn] Multiple main classes detected.

When SBT server will be running?

By default, sbt server will be running when a sbt shell session is active. When the server is up, it will create a file called the port file. The port file is located at ./project/target/active.json.

What is the default mode of SBT server?

The default mode since sbt 1.1.x is domain socket mode, which uses either Unix domain sockets (on Unix) or named pipes (on Windows) for data transfer between server and client. In addition, there is a TCP mode, which uses TCP for data transfer.

What is the use case for a SBT server?

Actually, sbt server just adds network access to sbt’s shell command so, in addition to accepting input from the terminal, server also to accepts input from the network. This allows multiple clients to connect to a single session of sbt. The primary use case we have in mind for the client is tooling integration such as editors and IDEs.


1 Answers

I ran into this problem as well, and solved it by removing the following from my ~/.gitconfig:

[url "[email protected]:"]
  insteadOf = https://github.com/
like image 143
earldouglas Avatar answered Sep 22 '22 09:09

earldouglas