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

permission denied after adding dependency to aspectd_impl #23

Closed
maheshmnj opened this issue Oct 22, 2019 · 2 comments
Closed

permission denied after adding dependency to aspectd_impl #23

maheshmnj opened this issue Oct 22, 2019 · 2 comments

Comments

@maheshmnj
Copy link

when I am adding the dependency to aspectd_impl (pubspecyaml) as mentioned in step 2 and running flutter packages get I am getting permission denied cloning error

dependencies:
  flutter:
    sdk: flutter
  aspectd:
    git:
      url: git@github.com:alibaba-flutter/aspectd.git
      ref: master
  example:
    path: ../
[aspectd_impl] flutter packages get
Running "flutter pub get" in aspectd_impl...                    
Git error. Command: git clone --mirror git@github.com:alibaba-flutter/aspectd.git /home/al004/flutter_linux_v1.7.8+hotfix.4-stable/flutter/.pub-cache/git/cache/aspectd-13577356093be3047a2bed83d4a388403aa4c5c6

Cloning into bare repository '/home/al004/flutter_linux_v1.7.8+hotfix.4-stable/flutter/.pub-cache/git/cache/aspectd-13577356093be3047a2bed83d4a388403aa4c5c6'...
git@github.com: Permission denied (publickey).


fatal: Could not read from remote repository.



Please make sure you have the correct access rights
and the repository exists.
@kangwang1988
Copy link
Contributor

kangwang1988 commented Oct 22, 2019

@maheshmnj
It seems a pure git clone issue instead of aspectd one.
The pub command failed when running git command,

git clone --mirror git@github.com:alibaba-flutter/aspectd.git /home/al004/flutter_linux_v1.7.8+hotfix.4-stable/flutter/.pub-cache/git/cache/aspectd-13577356093be3047a2bed83d4a388403aa4c5c6

See https://help.github.com/en/github/authenticating-to-github/error-permission-denied-publickey
for more.

@maheshmnj
Copy link
Author

That error was most probably due to some ssh keys needed for authentication a git user
I simply replaced the ssh url with https url and that error was gone
https://github.com/alibaba-flutter/aspectd.git

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

No branches or pull requests

2 participants