Using lib from Github-Packages #2459
Closed
wahtique
started this conversation in
Using directives and cmd configuration options
Replies: 1 comment
-
Forget it I found the working combination :
Works like a charm. See this too #1629 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi !
I am looking for a working example of an import of a package from Github Packages Maven repository using scala-cli.
My use case would be to import libs shared internally in my company org which involves passing a Github token as credentials.
Currently I have :
scala-cli config --dump
and the following using directives
which yields an
unauthorized
error on import.I also tried setting the
repositories.credential.host
tomaven.pkg.github.com
andmaven.pkg.github.com/MY_ORG
without success.As for the repository in the
using
directive I have also tried ( not sure if I tried every combination of both ):https://maven.pkg.github.com/MY_ORG/_
https://maven.pkg.github.com/MY_ORG/REPO_OF_MY_LIB
I am sure the token works. The
unauthorized
error seem to indicate either the crednetials are not passed or I am targeting the wrong URLs. Any idea on what's wrong with my setup ?Beta Was this translation helpful? Give feedback.
All reactions