mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
nix flake archive: Recurse into relative path inputs
We can't ignore them entirely, since we do want to archive their
transitive inputs.
Fixes #12438.
(cherry picked from commit 14c9755462
)
This commit is contained in:
parent
605b2371f9
commit
91508de315
3 changed files with 34 additions and 16 deletions
|
@ -99,6 +99,16 @@ writeTrivialFlake() {
|
|||
EOF
|
||||
}
|
||||
|
||||
initGitRepo() {
|
||||
local repo="$1"
|
||||
local extraArgs="${2-}"
|
||||
|
||||
# shellcheck disable=SC2086 # word splitting of extraArgs is intended
|
||||
git -C "$repo" init $extraArgs
|
||||
git -C "$repo" config user.email "foobar@example.com"
|
||||
git -C "$repo" config user.name "Foobar"
|
||||
}
|
||||
|
||||
createGitRepo() {
|
||||
local repo="$1"
|
||||
local extraArgs="${2-}"
|
||||
|
@ -107,7 +117,5 @@ createGitRepo() {
|
|||
mkdir -p "$repo"
|
||||
|
||||
# shellcheck disable=SC2086 # word splitting of extraArgs is intended
|
||||
git -C "$repo" init $extraArgs
|
||||
git -C "$repo" config user.email "foobar@example.com"
|
||||
git -C "$repo" config user.name "Foobar"
|
||||
initGitRepo "$repo" $extraArgs
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue