Closed karthink closed 6 months ago
Hi @progfolio,
Hi! Thank you for the thorough test case.
Does the
:depth
argument not apply to:remotes
specifications?
Currently it does not.
elpaca--configure-remotes
defers to elpaca--fetch
when remotes are added.
In turn, elpaca--fetch
runs git fetch --all -v
, which is where the rest of the history is being pulled in.
I had a note about making this more flexible in 154665145, but it seems I accidentally dropped during a refactoring. Long term, I'd like to think of a way to make all of the build commands more flexible, but I'm still experimenting with possible designs.
Any idea [...] how to get a shallow clone of the remote as well?
I've added a separate function to take the :remotes
configuration into account during the initial fetch. Does the output of the following test case align with the behavior your had in mind?
elpaca | 4f862ba HEAD -> fix/init-remotes, origin/fix/init-remotes |
installer | 0.7 |
emacs | GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-04-05 |
git | git version 2.44.0 |
Yup! This works perfectly. (The :ref fix/init-remotes
part really threw me off until I realized that's the version of elpaca being fetched, and it has nothing to do with the recipe.)
Yup! This works perfectly.
Glad to hear it. Merged into master.
The :ref fix/init-remotes part really threw me off until I realized that's the version of elpaca being fetched, and it has nothing to do with the recipe.
It's a good way to hack on Elpaca itself :)
There's also :ref local
to bypass the network and install your local version in a temp environment.
Yup! This works perfectly. (The
:ref fix/init-remotes
part really threw me off until I realized that's the version of elpaca being fetched, and it has nothing to do with the recipe.)
@progfolio this keeps tripping me up, since I forget this between uses of elpaca-test
. Do you think you could change the documentation of elpaca-test
from
:ref git ref to check out or ‘local’ to use local copy in current repo state
:depth number of Elpaca repository commits to clone
to
:ref git ref of Elpaca repository to check out or ‘local’ to use local copy in current repo state
:depth number of Elpaca repository commits to clone
Yup! This works perfectly. (The
:ref fix/init-remotes
part really threw me off until I realized that's the version of elpaca being fetched, and it has nothing to do with the recipe.)@progfolio this keeps tripping me up, since I forget this between uses of
elpaca-test
. Do you think you could change the documentation ofelpaca-test
from:ref git ref to check out or ‘local’ to use local copy in current repo state :depth number of Elpaca repository commits to clone
to
:ref git ref of Elpaca repository to check out or ‘local’ to use local copy in current repo state :depth number of Elpaca repository commits to clone
Done on master. Thank you
Confirmation
Elpaca Version
Operating System
Linux, Emacs 29.2
Description
Hi @progfolio,
Does the
:depth
argument not apply to:remote
specifications?I tried the following to run a clean test in an Org branch:
This works fine, except that the value of
:depth
for the:remote
specification is not being recognized. The original source is shallow cloned, but I get a full clone of the remote. Any idea what I'm doing wrong, or how to get a shallow clone of the remote as well?