From e20d92386652cf31910f41f58f1c3f2457f91941 Mon Sep 17 00:00:00 2001 From: Kevin Amado Date: Sat, 12 Feb 2022 14:15:07 -0500 Subject: [PATCH] perf: optimize nixpkgs checkout - By saving bandwidth it is faster --- buildkite.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/buildkite.yaml b/buildkite.yaml index b05669e..dcfdc6b 100644 --- a/buildkite.yaml +++ b/buildkite.yaml @@ -46,9 +46,9 @@ steps: - formatting-before-vs-after.patch.txt - formatting-after.patch.txt command: - - git config --global user.email ci@cd + - git config --global user.email CI/CD - git config --global user.name CI/CD - - git clone --depth 1 https://github.com/nixos/nixpkgs + - git clone --branch=master --depth 1 --origin=upstream file:///data/nixpkgs - echo --- Formatting - before - nix run github:kamadorueda/alejandra -- nixpkgs 2>/dev/null @@ -68,7 +68,9 @@ steps: - closure-after.txt - closure-before-vs-after.patch.txt command: - - git clone --depth 1 https://github.com/nixos/nixpkgs + - git config --global user.email CI/CD + - git config --global user.name CI/CD + - git clone --branch=master --depth 1 --origin=upstream file:///data/nixpkgs - echo --- Closure @ before - nix-env --query --available --attr-path --drv-path --file nixpkgs --xml > closure-before.txt