Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: run cachetool without args #3742

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

infabo
Copy link
Contributor

@infabo infabo commented Dec 6, 2023

fixes a regression bug introduced with 266554d

fixes a regression bug introduced with deployphp@266554d
@infabo
Copy link
Contributor Author

infabo commented Dec 6, 2023

I chose to only accept a plain string or an array of strings for the cachetool configuration value. Then make sure that cachetool_options always returns at least an array with empty string so BC is given (this allows the same behaviour before it was changed in 266554d).

@antonmedv
Copy link
Member

@claytonrcarter please rake a look.

Copy link

@claytonrcarter claytonrcarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should do the trick; thank you for the prompt resolution!

$return[] = "--fcgi={$option}";
}
}
}

return $return;
return $return ?: [''];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to double check, but [] ?: [''] returns [''], so this makes sense and it should resolve the issue I'm seeing in 7.3.3.

Thank you! 👍

@antonmedv antonmedv merged commit 11cef74 into deployphp:master Dec 8, 2023
9 checks passed
midweste pushed a commit to midweste/deployer that referenced this pull request Jan 16, 2024
* upstream/master: (78 commits)
  [automatic] Update docs with bin/docgen
  Move Caddy file in to separate file (deployphp#3765)
  Create parent folders if needed (deployphp#3764)
  [automatic] Update docs with bin/docgen
  Switch to owner change instead of shh user change (deployphp#3763)
  Don't show warning if `become` parameter is set to `root` (deployphp#3761)
  [automatic] Update docs with bin/docgen
  Adding Spiral Framework recipe (deployphp#3582)
  Crontab: allow sudo with crontab:use_sudo option (deployphp#3759)
  fix: run cachetool without args (deployphp#3742)
  Fix version variables in Contao recipe (deployphp#3735)
  contrib: fix creating cron jobs first time
  Removing wrong information regarding reverse DNS (deployphp#3726)
  [automatic] Update docs with bin/docgen
  Fix issue provoked after adding array casting and returning empty fcgi parameter to the command (deployphp#3724)
  Revert "[TASK] Update TYPO3 recipe (deployphp#3674)" (deployphp#3723)
  ci-cd docs: update link to gitlab doc section (deployphp#3721)
  [automatic] Update docs with bin/docgen
  Fix test function (deployphp#3717)
  [automatic] Update docs with bin/docgen
  ...
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.

Breaking change in v7.3.2 & v7.3.3 for cachetool task
3 participants