You are not logged in.

#1 2023-07-03 00:50:13

spacekobold
Member
Registered: 2022-11-19
Posts: 9

[SOLVED] Nested submodule update fails: repository does not exist

I am attempting to install darling-git using yay and am getting the following error:

...
Updating recursive submodules
Submodule 'pam_modules' (/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git) registered for path 'darling/submodules/pam_modules'
fatal: repository '/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git' does not exist
fatal: clone of '/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git' into submodule path '/home/qynn/.cache/yay/darling-git/src/darling/src/external/openpam/darling/submodules/pam_modules' failed
Failed to clone 'darling/submodules/pam_modules'. Retry scheduled
fatal: repository '/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git' does not exist
fatal: clone of '/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git' into submodule path '/home/qynn/.cache/yay/darling-git/src/darling/src/external/openpam/darling/submodules/pam_modules' failed
Failed to clone 'darling/submodules/pam_modules' a second time, aborting
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: darling-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
darling-git - exit status 4

I did a little bit of digging into this error and the (local) remote the submodule is trying to clone from does exist at /home/qynn/.cache/yay/darling-git/src/darling-pam_modules, and I was able to clone from it into another directory manually with git clone, so there doesn't appear to be any permission issues. Attempting to manually run the prepare() directives corresponding to the submodule also result in the same errors.

cd ~/.cache/yay/darling-git/src/darling/src/external/openpam/
git submodule init
git config submodule.darling/submodules/pam_modules.url ~/.cache/yay/darling-git/src/darling-pam_modules/
git -c protocol.file.allow=always submodule update
fatal: repository '/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git' does not exist
fatal: clone of '/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git' into submodule path '/home/qynn/.cache/yay/darling-git/src/darling/src/external/openpam/darling/submodules/pam_modules' failed
Failed to clone 'darling/submodules/pam_modules'. Retry scheduled
fatal: repository '/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git' does not exist
fatal: clone of '/home/qynn/.cache/yay/darling-git/src/darling-pam_modules.git' into submodule path '/home/qynn/.cache/yay/darling-git/src/darling/src/external/openpam/darling/submodules/pam_modules' failed
Failed to clone 'darling/submodules/pam_modules' a second time, aborting

I'm thoroughly stumped by this. All I was able to dig up online about issues like this revolved around some sort of permissions or authentication issue with a remote repo, but that doesn't apply since the repo exists locally, and being able to clone the submodule repo elsewhere locally seems to confirm this. Does anyone know why I am encountering this behavior and how I can fix it?

Last edited by spacekobold (2023-07-03 03:53:05)

Offline

#2 2023-07-03 01:51:57

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: [SOLVED] Nested submodule update fails: repository does not exist

The following changes which is a partial revert of https://aur.archlinux.org/cgit/aur.git/ … 69199463d8 resolved the issue for me

$ git diff
diff --git a/PKGBUILD b/PKGBUILD
index ba32eeb..c483bac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -368,13 +368,13 @@ prepare() {
 
     cd "$srcdir/$_gitname/src/external/openpam/"
     git submodule init
-    git config submodule.darling/submodules/pam_modules.url "$srcdir/darling-pam_modules"
+    git config submodule.pam_modules.url "$srcdir/darling-pam_modules"
     git -c protocol.file.allow=always submodule update
 
     cd "$srcdir/$_gitname/src/external/IOKitUser"
     git submodule init
-    git config submodule.darling/submodules/IOGraphics.url "$srcdir/darling-IOGraphics"
-    git config submodule.darling/submodules/IOHIDFamily.url "$srcdir/darling-IOHIDFamily"
+    git config submodule.IOGraphics.url "$srcdir/darling-IOGraphics"
+    git config submodule.IOHIDFamily.url "$srcdir/darling-IOHIDFamily"
     git -c protocol.file.allow=always submodule update
 
     cd "$srcdir/$_gitname/src/external/metal"

Offline

#3 2023-07-03 03:57:01

spacekobold
Member
Registered: 2022-11-19
Posts: 9

Re: [SOLVED] Nested submodule update fails: repository does not exist

Reverting those lines fixed the issue. Thank you!

Offline

Board footer

Powered by FluxBB