-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #609 from cweagans/608-composer-no-cache
Patching fails when --no-cache is passed
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/_data/fixtures/apply-git-patch-from-web-no-cache/composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "cweagans/composer-patches-test-project", | ||
"description": "Project for use in cweagans/composer-patches acceptance tests.", | ||
"type": "project", | ||
"license": "BSD-3-Clause", | ||
"repositories": [ | ||
{ | ||
"type": "path", | ||
"url": "../../../../" | ||
} | ||
], | ||
"require": { | ||
"cweagans/composer-patches": "*@dev", | ||
"cweagans/composer-patches-testrepo": "~1.0" | ||
}, | ||
"extra": { | ||
"patches": { | ||
"cweagans/composer-patches-testrepo": { | ||
"Add a file": "https://patch-diff.githubusercontent.com/raw/cweagans/composer-patches-testrepo/pull/1.patch" | ||
} | ||
} | ||
}, | ||
"config": { | ||
"preferred-install": "source", | ||
"allow-plugins": { | ||
"cweagans/composer-patches": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @var \Codeception\Scenario $scenario | ||
*/ | ||
|
||
use cweagans\Composer\Tests\AcceptanceTester; | ||
|
||
$I = new AcceptanceTester($scenario); | ||
$I->wantTo('modify a package using a patch downloaded from the internet (with "composer --no-cache")'); | ||
$I->amInPath(codecept_data_dir('fixtures/apply-git-patch-from-web-no-cache')); | ||
$I->runComposerCommand('install', ['-vvv', '--no-cache']); | ||
$I->canSeeFileFound('./vendor/cweagans/composer-patches-testrepo/src/OneMoreTest.php'); |