Skip to content

Upgrade ODK 1.5.4 → 1.6.1 (make update_repo currently fails on version skew) #465

Description

@turbomam

The repo's generated ODK scaffold (src/ontology/Makefile, src/scripts/*) is ODK v1.5.4, but the local/CI ODK image is v1.6.1. Because of that skew, sh run.sh make update_repo fails:

cp: cannot stat 'target/metpo/src/scripts/update_repo.sh': No such file or directory
make: *** [Makefile:603: update_repo] Error 1

The v1.5.4 update_repo.sh generates a v1.6.1 seed into target/ then copies files back, but the newer seed lays scripts out differently, so the copy-back aborts. It changes no tracked files (clean abort), but it means update_repo cannot be used until the repo is upgraded to 1.6.1 via the proper ODK upgrade procedure (re-seed), not a one-liner. The build's recurring Your ODK configuration has changed… run 'make update_repo' warning is a side effect of this and is otherwise cosmetic.

Why this matters / what to preserve on upgrade. Several IRI-scheme values are currently maintained as hand-edits to the generated Makefile because update_repo can't apply them:

A working update_repo after upgrade will regenerate the Makefile and revert these unless the values are made configurable in metpo-odk.yaml (or re-applied). The upgrade task must verify the version/product IRIs stay single-metpo/ and that metpo-base.* still contains METPO terms.

Related: #436, #463, #464, #433.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions