File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -15,30 +15,25 @@ import ./update-external.nix args {
15
15
git clone [email protected] :input-output-hk/stackage.nix.git
16
16
cd stackage.nix
17
17
git submodule update --init
18
+ git submodule foreach git pull origin master
18
19
fi
19
20
20
21
echo "Running lts-to-nix for all snapshots..."
21
22
22
- # update them all in parallel...
23
- N=$(getconf _NPROCESSORS_ONLN)
24
23
for lts in {lts-haskell,stackage-nightly}/*.yaml
25
24
do
26
- lts-to-nix $lts > $(basename '' ${lts%.yaml}.nix) &
27
- while [[ $(jobs -r -p | wc -l) -gt $N ]]; do
28
- # can't use `wait -n` on older bash versions.
29
- # e.g. what ships with macOS High Sierra
30
- sleep 1;
31
- done
25
+ if [[ ! -f $(basename '' ${lts%.yaml}.nix) ]]; then
26
+ lts-to-nix $lts > $(basename '' ${lts%.yaml}.nix)
27
+ fi
32
28
done
33
- wait
34
-
29
+
35
30
# update nightlies
36
31
echo "{" > nightlies.nix;
37
32
for a in nightly-*.nix; do echo " \"'' ${a%%.nix}\" = import ./$a;" >> nightlies.nix; done;
38
33
echo "}" >> nightlies.nix
39
34
# update lts
40
35
echo "{" > ltss.nix;
41
- for a in lts-*.nix; do echo " \"'' ${a%%.nix}\" = import ./$a;" >> ltss.nix; done;
36
+ for a in $(ls lts-*.nix | sort -Vtx -k 1,1) ; do echo " \"'' ${a%%.nix}\" = import ./$a;" >> ltss.nix; done;
42
37
echo "}" >> ltss.nix
43
38
'' ;
44
39
}
You can’t perform that action at this time.
0 commit comments