You are not logged in.

#1 2023-05-21 18:33:43

espritlibre
Member
Registered: 2022-12-15
Posts: 138

[SOLVED] pkgctl repo clone fails

$ pkgctl repo clone linux-hardened                                      [255]
==> Cloning linux-hardened ...
Cloning into 'linux-hardened'...
git@gitlab.archlinux.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

even though i added the key in the first run... no files are created


$ pkgctl repo clone --unprivileged linux-hardened                       [255]
==> Cloning linux-hardened ...
Cloning into 'linux-hardened'...
remote: Enumerating objects: 1925, done.
remote: Counting objects: 100% (1925/1925), done.
remote: Compressing objects: 100% (1087/1087), done.
remote: Total 1925 (delta 837), reused 1925 (delta 837), pack-reused 0
Receiving objects: 100% (1925/1925), 475.74 KiB | 7.32 MiB/s, done.
Resolving deltas: 100% (837/837), done.
==> ERROR: invalid argument: --unprivileged

i get the desired files + a .git folder with files


git clone https://gitlab.archlinux.org/archlinux/packaging/packages/linux-hardened.git

works as expected

Last edited by espritlibre (2023-05-22 21:11:12)

Offline

#2 2023-05-21 19:12:23

yan12125
Member
Registered: 2017-11-01
Posts: 36

Re: [SOLVED] pkgctl repo clone fails

`pkgctl repo clone --unprivileged` needs some fixes. See https://gitlab.archlinux.org/archlinux/ … issues/132.

For now you can use `git clone https://gitlab.archlinux.org/archlinux/packaging/packages/${pkgbase}.git/`. Note that some pkgbase names are not allowed as GitLab repo names, and
those names are transformed with these rules: https://gitlab.archlinux.org/archlinux/ … ns-git#L48.

Offline

#3 2023-05-22 17:29:50

gavinhungry
Member
Registered: 2011-02-13
Posts: 10
Website

Re: [SOLVED] pkgctl repo clone fails

You can also work around this with a rule in ~/.gitconfig:

[url "https://gitlab.archlinux.org/"]
  insteadOf = git@gitlab.archlinux.org:

Offline

#4 2023-05-22 21:10:52

espritlibre
Member
Registered: 2022-12-15
Posts: 138

Re: [SOLVED] pkgctl repo clone fails

thank you both, the tip with the .config file works

Offline

Board footer

Powered by FluxBB