oslokommune / ok

Infrastructure toolbox 👌
https://km.oslo.systems
1 stars 1 forks source link

fix: Check package version #306

Closed yngvark closed 2 weeks ago

yngvark commented 2 weeks ago

Description

Before the release of app v9.0.0, ok pkg update transforms the app var file. This will make ok pkg install fail as the current latest app template does not support for instance ApexDomain.

This means we need to check whether the app template supports ApexDomain, which means we need to check its version. This version check is added in the AddApexDomainSupport function.

This PR also switches from using the schema config for determining package version. This is not reliable. A more robust way is simply using the package manifest.

Motivation