Comments (12)
I tried to reproduce the bug report, but failed. Could you give me more information about your setup/os?
from drupal-scaffold.
Source, Log
Linux Jarvis 4.2.0-35-generic #40-Ubuntu SMP Tue Mar 15 22:15:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Composer version @package_branch_alias_version@ (1.0.0) 2016-04-05 13:27:25
I'm likely using the Composer scripts incorrectly.
from drupal-scaffold.
It is also happening for me on ubuntu.
from drupal-scaffold.
Do note the path... [FileSystem\FilesystemStack] mkdir ["/tmp//drupal-scaffold-1460255831"]
/tmp//drupal-*. Would the paths have anything to do with it?
from drupal-scaffold.
Tagged a new release with #28 and #30
from drupal-scaffold.
This is not fixed yet. The problem is apparently in robo extract/rename task. The extract task extract the file in some random tmp directory in project root. In RoboFile.php
we have
$extract = $this->taskExtract($archivePath)->to("$tmpDir/$fetchDirName")->run();
And in Extract.php
we have
if ($hasEncapsulatingFolder && !$this->preserveTopDirectory) {
$result = (new FileSystemStack())->rename($filesInExtractLocation[0], $this->to)->run();
@rmdir($extractLocation);
}
The directory $extractLocation
is not empty so it is not deleted. $extractLocation
is not empty because FilesystemStack::_rename
just copies the content to target and doesn't empty $origin
.
from drupal-scaffold.
There was fix in consolidation/robo#276 but then there was consolidation/robo#277 cc: @greg-1-anderson.
from drupal-scaffold.
Hmm but, robo 0.7.* is required by drupal-composer/drupal-scaffold already.
from drupal-scaffold.
@jibran @RobLoach could you try again with the latest release?
from drupal-scaffold.
@jibran @RobLoach There were still a couple of cross-volume rename bugs in Robo. This is not too surprising, considering that there were no cross-volume rename tests on Travis (since Travis does not have multiple volumes available). I refactored the code so that the cross-volume rename method was testable on a single volume, fixed the bugs, added a test, and tagged Robo 0.7.2. Please run composer update
, ensure that you got Robo 0.7.2, and see if it clears up your problems.
from drupal-scaffold.
Thanks @greg-1-anderson robo 0.7.2 fixed the problem for me. Thanks @webflo for looking into it.
from drupal-scaffold.
Thanks for your patience, all.
from drupal-scaffold.
Related Issues (20)
- Drupal composer create-project Failed to download /plain/ directory HOT 6
- PrestissimoFileFetcher errors with newest Curl Version 7.64.0 HOT 5
- Downloading scaffold files fails
- Error when running `composer update` HOT 3
- Comparison to Composer Scaffold HOT 7
- post-drupal-scaffold-cmd not working anymore? HOT 1
- Can't exclude files HOT 2
- PHP Parse error when trying to run composer self-update
- Re-scaffolding index.php causes SoftException 500 Error
- Compatibility with Composer 2 HOT 3
- Plugin::scaffold call is deprecated but README says it should be added to post-install commands HOT 5
- Copy development.services.yml
- Add ability to specify a location for includes
- Error in post install script HOT 27
- Cannot run 'composer drupal-scaffold' in 2.5.0 HOT 3
- Fatal error: Interface 'Composer\Plugin\Capability\CommandProvider' not found HOT 5
- Add README.txt files to the scaffold
- .eslintrc.json - how to make it work with the extends?
- html
- generation of autoload.php file should respect umask value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal-scaffold.