feature: [0.16.0] support for private plugins ASDF_GIT_USERNAME
and ASDF_GIT_PASSWORD
#1882
Labels
ASDF_GIT_USERNAME
and ASDF_GIT_PASSWORD
#1882
Is your feature request related to a problem? Please describe
Before 0.16.0 (Go migration), the tool supported the installation of private plugins (hosted in a private repository), and the git client had access to it.
With the migration to Go, relying on the go-git library, this feature is no longer working, since the tool is internally doing a PlainClone
asdf/internal/git/git.go
Line 51 in e63aec6
and before that, with the bash implementation, the git client was relying on the .gitconfiguration file, whether you have the authentication in a git credential helper or any other sort of configuration.
Describe the proposed solution
While the go-git library does have support for authenticated calls to GitHub repositories with SSH and basic authentication (see examples folder), asdf should adapt to each case and call the go-git API differently.
While having support for loading the user's .gitconfig folder in the go-git library would be the best solution, there is no support for that, and for the git credential helpers too as they are opened to receive contributions now, see go-git/go-git#1420.
So I suggest having
ASDF_GIT_USERNAME
andASDF_GIT_PASSWORD
env variables, if they are present, send those credentials during theasdf plugin add
andasdf plugin update
commands.Describe similar
asdf
features and why they are not sufficientn/a
Describe other workarounds you've considered
I have not found any other workaround for making the plugin repository public, which is not an option right now.
The text was updated successfully, but these errors were encountered: