Skip to content

ocp-matrix emits dev-stable36 before nextcloud/ocp has a stable36 branch #13

Open

Description

@ChristophWurst

Since v1.3.5, getBranch() returns stable36 for any version in KNOWN_PHP_VERSION_RANGES without checking that the branch exists. v1.3.4 had no stable36 entry, so it probed GitHub and fell back to master.

For an app declaring <nextcloud max-version="36" />, the ocp-matrix output now includes dev-stable36. The Psalm workflow then runs composer require --dev nextcloud/ocp:dev-stable36, which fails because neither nextcloud/server nor nextcloud/ocp has a stable36 branch yet:

Root composer.json requires nextcloud/ocp dev-stable36, found nextcloud/ocp[dev-master, ..., dev-stable35, ...] but it does not match the constraint.

Seen in nextcloud/mail after the org template bumped to v1.3.5 (nextcloud/.github#842). Calendar, Contacts and Notes will likely hit it once they update.

Suggested fix: keep the hard-coded PHP ranges, but only return stable<N> when the branch exists, otherwise return master as before. Alternatively, keep stable36 for the PHP ranges and map the OCP version to master until the branch exists.

Assisted by ClaudeCode:claude-sonnet-5-5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions