-
-
Notifications
You must be signed in to change notification settings - Fork 606
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
composer install
with --classmap-authoritative
during deploy
#1132
composer install
with --classmap-authoritative
during deploy
#1132
Conversation
d275de4
to
c97af88
Compare
composer install
with --classmap-authoritative
during deploycomposer install
with --classmap-authoritative
during deploy
roles/deploy/defaults/main.yml
Outdated
@@ -48,6 +48,9 @@ project_current_path: "{{ project.current_path | default('current') }}" | |||
# Whether to run `wp core update-db` at end of each deploy | |||
update_db_on_deploy: true | |||
|
|||
# Whether to autoload classes from classmap only. | |||
composer_classmap_authoritative: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you thinking that true
isn't safe enough as the default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
I am running --classmap-authoritative
to see any of my sites break.
Maybe default to true
on next major relrease
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a second thought, it is very difficult to make a wp plugin that:
- generates classes dynamically, and
- relies on bedrock's composer autoloader
Defaults composer_classmap_authoritative
to true
Ready for review
c97af88
to
ec4b295
Compare
composer install
with --classmap-authoritative
during deploycomposer install
with --classmap-authoritative
during deploy
composer install
with --classmap-authoritative
during deploycomposer install
with --classmap-authoritative
during deploy
ec4b295
to
11c51ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'm good with this as a default 👍
See: