Hi! For the past 2 hours I have been trying to run nixpkgs-update to update a package I maintain (Without having to wait for the ryanbot). However I cannot seems to make it work, and the documentation is quite parse on it. Could someone help me make it work?
Here’s the steps I have done:
- Git cloned my fork of nixpkgs onto my disk.
- Added nixpkgs-update + hub to my NixOS config
- Added the upstream nixpkgs using
git remote add upstream "https://github.com/NixOS/nixpkgs.git" - run
export GITHUB_TOKEN=<token>which is a classic github token with the Repo and Gist permision given - run git fetch
- run git fetch upstream
- run git pull
- Finally run my update command:
nixpkgs-update update --pr --nixpkgs-review "alistral 0.6.9 0.6.10"
However I am asked for my github username and password, but those doesn’t work due to my 2factora authentication. As well as nixpkgs-review not running for some reason?
Successfully finished processing
skipping cache
[check][nixpkgs-review]
[check][nixpkgs-review] report.md does not exist
:x: nixpkgs-review failed
Username for 'https://github.com': RustyNova016
Password for 'https://RustyNova016@github.com':
Username for 'https://github.com': RustyNova016
Password for 'https://RustyNova016@github.com':
Username for 'https://github.com': RustyNova016
Password for 'https://RustyNova016@github.com':
Received ExitFailure 128 when running
Raw command: /nix/store/apl2ibxqrxbbj6z79nfgv892999z1zyv-git-2.44.0/bin/git push --force --set-upstream origin auto-update/alistral
Standard error:
remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/RustyNova016/nixpkgs.git/'
Received ExitFailure 128 when running
Raw command: /nix/store/apl2ibxqrxbbj6z79nfgv892999z1zyv-git-2.44.0/bin/git push --force --set-upstream origin auto-update/alistral
Standard error:
remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/RustyNova016/nixpkgs.git/'
Received ExitFailure 128 when running
Raw command: /nix/store/apl2ibxqrxbbj6z79nfgv892999z1zyv-git-2.44.0/bin/git push --force --set-upstream origin auto-update/alistral
Standard error:
remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/RustyNova016/nixpkgs.git/'
[result] Failed to update alistral 0.6.9 -> 0.6.10
Am i missing something? I also didn’t manage to find any documentation on how to setup hub’s credentials either.