mirror of
https://github.com/NixOS/nix
synced 2025-07-07 18:31:49 +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.
This commit is contained in:
parent
d433a2242e
commit
14c9755462
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