Skip to content

ci: repoint install-spatial-deps to @main - #167

Open
achubaty wants to merge 1 commit into
developmentfrom
ci/repoint-spatial-deps-main
Open

ci: repoint install-spatial-deps to @main#167
achubaty wants to merge 1 commit into
developmentfrom
ci/repoint-spatial-deps-main

Conversation

@achubaty

Copy link
Copy Markdown
Collaborator

Repoints install-spatial-deps from v0.2 to @main1 reference(s) in .github/workflows/landweb-manual.yaml .

Why

Every published tag of that action — v0.1 through v0.5, including the newest — still runs:

add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable

That PPA installs libgdal37 (GDAL 3.11.x). Posit's noble binary cache builds sf/terra against the Ubuntu-default libgdal34 — confirmed by objdump on the PPM noble tarballs, which need libgdal.so.34, libproj.so.25, libgeos_c.so.1. The mismatch surfaces only at lazy-load, as libgdal.so.34: cannot open shared object file, and takes the whole job with it.

Only @main dropped the PPA (PredictiveEcology/actions#25). Tags do not move, so pinning to one keeps the hazard — which is why "pin to the newest tag" is currently the wrong advice for this action.

This repo's own history records the failure in both directions: a cached terra built against one libgdal while the runner supplied the other. The underlying cause was a stale setup-r-dependencies package cache outliving a change in the runner's system GDAL — the PPA is what made the two disagree.

Note

On the pak path this step is largely redundant anyway: setup-r-dependenciespak::lockfile_install()install_sysreqs() already installs libgdal-dev, gdal-bin, libgeos-dev, libproj-dev, libsqlite3-dev and libudunits2-dev from stock noble apt, and pak's own rules add the ubuntugis PPA only for Ubuntu 14.04/16.04. Removing the step entirely is a separate change, gated on a self-test run — this PR only makes the pin correct.

🤖 Generated with Claude Code

Every published tag -- v0.1 through v0.5, including the newest -- still runs
`add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable`. That installs
libgdal37, while Posit's noble binary cache builds sf/terra against the
Ubuntu-default libgdal34. The mismatch surfaces only at lazy-load, as
`libgdal.so.34: cannot open shared object file`, and fails the whole job.

Only @main dropped the PPA. Tags do not move, so pinning to one -- even the
newest -- keeps the hazard. Was: v0.2

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant