git@github.com: Permission denied (publickey).

Open
#342 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
git
Domain
tooling

Research direction

Start by reproducing niv update and the reported git ls-remote git@github.com:numtide/treefmt.git refs/heads/master command. Inspect how niv invokes Git and handles SSH authentication failures; done means establishing whether this is an actionable niv problem or an environment-specific access error, with the result documented or verified by a focused test.

Written by the indexing model from the issue text.

Description

mf@Michis:~/nixkell$ niv update
Updating all packages
Package: nixpkgs
Package: gitignore
Package: treefmt
FATAL: Could not read the output of 'git'.
command: git ls-remote git@github.com:numtide/treefmt.git refs/heads/master
stdout:
stderr: 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.

This is a bug. Please create a ticket:
https://github.com/nmattia/niv/issues/new
Thanks! I'll buy you a beer.
FATAL: One or more packages failed to update:
treefmt: ExitFailure 1
ERROR: ExitFailure 1

Dominant language
Haskell
Stars
1.9k
Forks
75
Avg merge
7m
Merged PRs (30d)
5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nmattia/niv

All issues in nmattia/niv

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.