-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Defer lookup of git in $PATH for git-repo externals
- Loading branch information
Showing
5 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[windows] skip 'UNIX only' | ||
|
||
expandenv $CHEZMOISOURCEDIR/.chezmoiexternal.toml | ||
|
||
# test that chezmoi apply does not cache the absence of git in $PATH at startup | ||
exec chezmoi apply | ||
stdout 'using newly-installed git' | ||
|
||
-- golden/git -- | ||
#!/bin/sh | ||
|
||
echo "using newly-installed git" | ||
-- home/user/.local/share/chezmoi/.chezmoiexternal.toml -- | ||
[".dir"] | ||
type = "git-repo" | ||
url = "file://$WORK/repo" | ||
-- home/user/.local/share/chezmoi/run_once_before_install-git.sh -- | ||
#!/bin/sh | ||
|
||
mkdir -p $WORK/bin | ||
install -m 755 $WORK/golden/git $WORK/bin |