Skip to content

Commit

Permalink
Merge branch 'main' into GL-1377
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-bansal96 authored Sep 8, 2023
2 parents 869dd29 + b2c6811 commit 5747f21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Command/App/NewFromDrupal7Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
fclose($config_resource);

// Parse recommendations for project builder.
$recommendations_location = __DIR__ . '/../../../config/from_d7_recommendations.json';
$recommendations_location = "https://git.drupalcode.org/project/acquia_migrate/-/raw/recommendations/recommendations.json";
if ($input->getOption('recommendations') !== NULL) {
$raw_recommendations_location = $input->getOption('recommendations');
try {
Expand All @@ -148,6 +148,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return Command::FAILURE;
}
}
// PHP defaults to no user agent. (Drupal.org's) GitLab requires it.
// @see https://www.php.net/manual/en/filesystem.configuration.php#ini.user-agent
ini_set('user_agent', 'ACLI');
$recommendations_resource = fopen($recommendations_location, 'r');
$recommendations = Recommendations::createFromResource($recommendations_resource);
fclose($recommendations_resource);
Expand Down

0 comments on commit 5747f21

Please sign in to comment.