Skip to content

Commit

Permalink
Merge 89e37b0 into d0b43e7
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Nov 3, 2018
2 parents d0b43e7 + 89e37b0 commit 1eb5f38
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,16 @@ public function run()
}
// Clean away the lock file if we are not supposed to use it. But first
// read it for use later.
$new_lockdata = json_decode(file_get_contents($this->tmpDir . '/composer.lock'));
$new_lockdata = @json_decode(@file_get_contents($this->tmpDir . '/composer.lock'));
if (!$new_lockdata) {
$message = sprintf('No composer.lock found after updating %s', $package_name);
$this->log($message);
$this->log('This is the stdout:');
$this->log($this->getLastStdOut());
$this->log('This is the stderr:');
$this->log($this->getLastStdErr());
throw new \Exception($message);
}
$post_update_data = $this->getPackageData($package_name, $new_lockdata);
$version_to = $post_update_data->version;
if (isset($post_update_data->source) && $post_update_data->source->type == 'git') {
Expand Down

0 comments on commit 1eb5f38

Please sign in to comment.