Skip to content

chore: pin the third-party plugins with the ref field of the setup config - #39

Merged
YvesCesar merged 2 commits into
mainfrom
chore/pin-plugins-with-ref
Nov 17, 2026
Merged

YvesCesar merged 2 commits into
mainfrom
chore/pin-plugins-with-ref

Conversation

@YvesCesar

@YvesCesar YvesCesar commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

LibreCodeCoop/wordpress-docker#45 added a ref field to wordpress_custom_plugins: the entrypoint clones as www-data, fetches the commit and checks that HEAD matches it before activating the plugin. This moves polylang-pro and woocommerce-subscriptions from the version=… pin=… command in post_install_commands to that field.

Changes

  • polylang-pro and woocommerce-subscriptions use ref: <sha> # vX.Y.Z. The other post_install_commands (ACF symlink, apportion_recurring_price) stay. The polylang-pro source gains the .git suffix, which the Renovate regex expects.
  • The Renovate custom manager matches source: … ref: <sha> # vX.Y.Z instead of the old command, still with the git-tags datasource. For annotated tags Renovate records the tag object SHA, which the entrypoint accepts after fix: accept annotated tag object SHAs as git pins LibreCodeCoop/wordpress-docker#47; merge that one first.

A behavior change: if the pinned commit cannot be checked out, the plugin is no longer kept at whatever commit it had and activated; the entrypoint skips its activation and post_install_commands.

Validation

  • Renovate 41 dry run (--platform=local): both dependencies are detected. With polylang-pro moved back to v3.7.3, it proposes v3.7.6 with digest 851df56.
  • The merged entrypoint, run with a stubbed wp against the two real repositories: both plugins are cloned at the pinned commits, the ACF symlink is created, the option is set and both plugins are activated.

…nfig

Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
Signed-off-by: YvesCesar <yvesamorim73@gmail.com>
@YvesCesar
YvesCesar merged commit 3818133 into main Nov 17, 2026
4 checks passed
@YvesCesar
YvesCesar deleted the chore/pin-plugins-with-ref branch November 17, 2026 22:02
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