Giter Club home page Giter Club logo

Comments (12)

webflo avatar webflo commented on August 11, 2024

I tried to reproduce the bug report, but failed. Could you give me more information about your setup/os?

from drupal-scaffold.

RobLoach avatar RobLoach commented on August 11, 2024

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

scaffold

I'm likely using the Composer scripts incorrectly.

from drupal-scaffold.

jibran avatar jibran commented on August 11, 2024

It is also happening for me on ubuntu.

from drupal-scaffold.

RobLoach avatar RobLoach commented on August 11, 2024

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.

webflo avatar webflo commented on August 11, 2024

Tagged a new release with #28 and #30

from drupal-scaffold.

jibran avatar jibran commented on August 11, 2024

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.

jibran avatar jibran commented on August 11, 2024

There was fix in consolidation/robo#276 but then there was consolidation/robo#277 cc: @greg-1-anderson.

from drupal-scaffold.

webflo avatar webflo commented on August 11, 2024

Hmm but, robo 0.7.* is required by drupal-composer/drupal-scaffold already.

from drupal-scaffold.

webflo avatar webflo commented on August 11, 2024

@jibran @RobLoach could you try again with the latest release?

from drupal-scaffold.

greg-1-anderson avatar greg-1-anderson commented on August 11, 2024

@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.

jibran avatar jibran commented on August 11, 2024

Thanks @greg-1-anderson robo 0.7.2 fixed the problem for me. Thanks @webflo for looking into it.

from drupal-scaffold.

greg-1-anderson avatar greg-1-anderson commented on August 11, 2024

Thanks for your patience, all.

from drupal-scaffold.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.