diff options
author | Kane York <kanepyork@gmail.com> | 2020-08-21T01·15-0700 |
---|---|---|
committer | kanepyork <rikingcoding@gmail.com> | 2020-08-25T22·34+0000 |
commit | a9650041bb73366d9be73bcbe34faf8694f9aa2c (patch) | |
tree | bf9a6aa435d1cb1a2dbd9ae9bf866578fe8ca7a3 /tools/tvlc/common.sh | |
parent | e5392420325cda9070d1a3d47f5ef3f4b03489b1 (diff) |
feat(tools/tvlc): pass list of derivations to depot-scanner r/1711
You can now provide a list of Nix derivations to tvlc to get a git worktree + sparse-checkout containing only the paths needed to build the specified derivations. Known bugs: even though //third_party is only passed to readdir(), git doesn't know this and includes all of //third_party/*. Change-Id: I9dccebd3fbff4bb04ebd568175cf0a7e37d71ab3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1826 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'tools/tvlc/common.sh')
-rw-r--r-- | tools/tvlc/common.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/tvlc/common.sh b/tools/tvlc/common.sh index 2c8cc603cb97..fe7605857fd3 100644 --- a/tools/tvlc/common.sh +++ b/tools/tvlc/common.sh @@ -3,9 +3,12 @@ set -eu set -o pipefail +source path-scripts + XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" tvlc_root="$XDG_DATA_HOME/tvlc" +nice_checkout_root= if [ -f "$tvlc_root"/nice_checkout_root ]; then nice_checkout_root="$(cat "$tvlc_root"/nice_checkout_root)" fi |