rustprooflabs / pgosm-flex

PgOSM Flex provides high quality OpenStreetMap datasets in PostGIS (Postgres) using the osm2pgsql Flex output.
MIT License
101 stars 20 forks source link

Docker build fails to install osm2pgsql - NLOHMANN_INCLUDE_DIR #345

Closed rustprooflabs closed 1 year ago

rustprooflabs commented 1 year ago

What version of PgOSM Flex are you using?

Latest feature branch, re #344.

Docker image

GitHub is failing to build the Docker image.

What did you do exactly?

Pushed changes to GitHub.

What did you expect to happen?

Actions should successfully build the Docker image.

What did happen instead?

GitHub actions fails to build, first failure: https://github.com/rustprooflabs/pgosm-flex/actions/runs/5448223334

Error message pointing to what appears to be the problem.

#13 2.224 CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
#13 2.224 Please set them or make sure they are set and tested correctly in the CMake files:
#13 2.224 NLOHMANN_INCLUDE_DIR

What did you do to try analyzing the problem?

Searching for NLOHMANN_INCLUDE_DIR led me to CMakeLists.txt in osm2pgsql. Git blame on that line points to a commit from about 12 hours earlier. Related PR https://github.com/openstreetmap/osm2pgsql/pull/1969

It appears there's a new dependency required to be installed to support this change. It hasn't failed for me locally yet since I've been using docker build using the cache with a slightly older version of osm2pgsql.