Skip to content
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

Auth fail on sbt new #674

Open
salvalcantara opened this issue May 2, 2022 · 2 comments
Open

Auth fail on sbt new #674

salvalcantara opened this issue May 2, 2022 · 2 comments

Comments

@salvalcantara
Copy link

salvalcantara commented May 2, 2022

Steps

Set up a template project on a private Gitlab instance using the following build.properties:

sbt.version=1.6.2
giter8.version=0.14.0

then run

sbt new [email protected]:company/private/template-project.g8.git

Problem

I'm getting the following error

[email protected]:company/private/template-project.g8.git: Auth fail

However, if I install g8 using Coursier, it just works:

g8 git@gitlab.com:company/private/template-project.g8.git

Cloning the repo works just fine, too

git clone [email protected]:company/private/template-project.g8.git

Expectation

The sbt new command creates the project without errors.

Notes

For what it's worth, the above versions in build.properties match my local versions for both sbt (installed via Homebrew) and giter8 (installed via Coursier as a workaround for sbt new). The problem should have been solved in #583, but I'm using the latest sbt/g8 versions and still getting the Auth fail error.

@salvalcantara salvalcantara changed the title Auth fail on sbt new auth fail on sbt new May 2, 2022
@salvalcantara salvalcantara changed the title auth fail on sbt new Auth fail on sbt new May 2, 2022
@TonioGela
Copy link
Member

TonioGela commented Oct 3, 2022

@eed3si9n this is interesting, in particular since g8 alone works while from sbt new it doesn't. Maybe Apache Mina in the g8 classpath gets overridden by jsch in the sbt classpath. Couldn't that be the case? What do you think?

@eed3si9n
Copy link
Member

eed3si9n commented Oct 3, 2022

It would be good to revisit this now that sbt 1.7.2 is out with Mina-enabled Giter8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants