[#1056] Makefile: fix target locode-download
All checks were successful
DCO action / DCO (pull_request) Successful in 6m2s
Build / Build Components (1.20) (pull_request) Successful in 9m35s
Build / Build Components (1.21) (pull_request) Successful in 10m43s
Vulncheck / Vulncheck (pull_request) Successful in 14m6s
Tests and linters / gopls check (pull_request) Successful in 7m19s
Tests and linters / Staticcheck (pull_request) Successful in 7m57s
Tests and linters / Lint (pull_request) Successful in 11m0s
Tests and linters / Tests (1.21) (pull_request) Successful in 11m40s
Tests and linters / Tests (1.20) (pull_request) Successful in 11m58s
Tests and linters / Tests with -race (pull_request) Successful in 12m5s

wget fails if .cache dir does not exist

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2024-03-26 14:07:25 +03:00
parent c7a12ca3d8
commit 8690db697c

View file

@ -265,8 +265,9 @@ debclean:
# Download locode database
locode-download:
@wget -q -O ./.cache/locode_db.gz 'https://git.frostfs.info/TrueCloudLab/frostfs-locode-db/releases/download/${LOCODE_DB_VERSION}/locode_db.gz'
gzip -dfk ./.cache/locode_db.gz
mkdir -p $(TMP_DIR)
@wget -q -O ./$(TMP_DIR)/locode_db.gz 'https://git.frostfs.info/TrueCloudLab/frostfs-locode-db/releases/download/${LOCODE_DB_VERSION}/locode_db.gz'
gzip -dfk ./$(TMP_DIR)/locode_db.gz
# Start dev environment
env-up: all