1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

perf: optimize nixpkgs checkout

- By saving bandwidth it is faster
This commit is contained in:
Kevin Amado 2022-02-12 14:15:07 -05:00
parent 70042d5bbd
commit e20d923866
No known key found for this signature in database
GPG key ID: FFF341057F503148

View file

@ -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