There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

to_template

Converts a query to a new template query. When converting from a non-template, all constraints will be set to 'editable' and 'locked' (the default values).