peterstace / simplefeatures

Simple Features is a pure Go Implementation of the OpenGIS Simple Feature Access Specification
MIT License
130 stars 19 forks source link

Use alpine images for GEOS tests #581

Closed peterstace closed 9 months ago

peterstace commented 9 months ago

Description

The previous approach compiled the GEOS library from source. This was quite annoying when new versions of GEOS came out, because new images had to be created (they take several hours to build on a powerful machine).

The new approach is simpler and is based on pre-built alpine images.

Check List

Have you:

Related Issue

peterstace commented 9 months ago

Why was the approach of compiling the geos library from source taken initially?

I thought it was important to be able to test against old versions of GEOS, but incorrectly thought that was impossible/hard to do with a pre-compiled version of the library. I mistakenly believed that alpine was a rolling release, where only the latest version of everything is available. In reality, you can pin to a specific alpine release. Other distros (e.g. debian) have major releases at such a slow rate that some of the minor versions of GEOS are skipped between OS releases.

(btw, thanks for reviewing!)