From b10f024081a94aba8c71125468d2aead5c6f3dea Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 27 Feb 2025 15:48:00 +0300 Subject: [PATCH] Makefile: use static revision for openflights data It's very rarely changed, so it's not a problem. And we can have a bit less surpises and also close #13 since after this change we no longer have any simple files to download, they're all coming from github with known revisions. If Github is to return something different and we can't trust it any additional checks would be meaningless anyway. Signed-off-by: Roman Khimov --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e8bb26a..18ebb68 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ VERSION ?= "$(shell git describe --tags --match "v*" --dirty --always --abbrev=8 2>/dev/null || echo "develop")" LOCODEDB ?= pkg/locodedb/data UNLOCODEREVISION = 340a08558c84ae43122b86e97606bd2f5a771a06 +OPENFLIGHTSREVISION = f9f41975b6d101425848284f978477a38c26b6ff .PHONY: all clean version help generate lint @@ -17,10 +18,10 @@ $(DIRS): @mkdir -p $@ in/airports.dat: | in - wget -c https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat -O $@ + wget -c https://raw.githubusercontent.com/jpatokal/openflights/${OPENFLIGHTSREVISION}/data/airports.dat -O $@ in/countries.dat: | in - wget -c https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat -O $@ + wget -c https://raw.githubusercontent.com/jpatokal/openflights/${OPENFLIGHTSREVISION}/data/countries.dat -O $@ # https://gist.githubusercontent.com/hrbrmstr/91ea5cc9474286c72838/raw/59421ff9b268ff0929b051ddafafbeb94a4c1910/continents.json in/continents.geojson: continents.geojson.gz | in