Skip to content

Conversation

@tdgroot
Copy link
Member

@tdgroot tdgroot commented Jul 4, 2024

The master branch contains a few regressions:

  • Accidental variable type mixing (3cad9f2)
    PHP Fatal error: Uncaught Error: Call to undefined method Deployer\Task\Task::supports() in phar:///bin/hypernode-deploy/src/DeployRunner.php:150
  • Role selection does not work as intended, causing certain tasks to be skipped (c4000f6)

tdgroot added 2 commits July 4, 2024 13:56
This reverts commit 31c9cdf.

The role selection does not work, because:
- The label is actually called `roles`
- The `roles` label is an array, so `=` comparison with a role string does not work
- Deployer selector does not support a comparison operator to check if an array contains a value
$task is of type ConfigurableTaskInterface, while $deployerTask is of type Task (from Deployer). Next taskConfig iteration would run `supports` on Deployer Task type, which obviously does not exist.
@tdgroot tdgroot force-pushed the fix_regressions branch from 3cad9f2 to b3387fc Compare July 4, 2024 11:56
@tdgroot tdgroot merged commit f6fe8f3 into master Jul 4, 2024
@tdgroot tdgroot deleted the fix_regressions branch July 4, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants