Skip to content

flutter pub get issue with github #200

Description

@bmd007

Hi
I have a package which should be downloaded from a github repo like:

  rsocket:
    git:
      url: git@github.com:rsocket/rsocket-dart.git
      ref: master

When I can locally run flutter pub get all is fine.
However,

      - name: flutter pub get
        run: flutter pub get

fails with

Running "flutter pub get" in dance_partner_finder...            
Git error. Command: `git clone --mirror git@github.com:rsocket/rsocket-dart.git /opt/hostedtoolcache/flutter/stable-3.3.10-x64/.pub-cache/git/cache/rsocket-dart-09a70c15[8]
stderr: Cloning into bare repository '/opt/hostedtoolcache/flutter/stable-3.3.[10](https://github.com/bmd007/wonderland/actions/runs/3797083664/jobs/6457732719#step:6:11)-x64/.pub-cache/git/cache/rsocket-dart-09a70c158fe137d63f8e0090b93431e1d730b21d'...
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.

.

The mentioned repo is public and doesn't need access permission.
How can I resolve this?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions