Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Packaging cannot delete temporary build file #22

Open
lvcabral opened this issue Aug 18, 2017 · 1 comment
Open

[Windows] Packaging cannot delete temporary build file #22

lvcabral opened this issue Aug 18, 2017 · 1 comment

Comments

@lvcabral
Copy link
Contributor

When packaging apparently the Faraday UploadIO object is not closing the zip file, causing File.delete() to fail during the sideload. Check the debug stack trace below.

If I comment the delete line (loader.rb:49) the package works but the zip file is not deleted.

C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/lib/roku_builder/plugins/loader.rb:49:in `delete': Permission denied @ unlink_internal - C:/Users/Marcelo/Dropbox/Projects/Roku/ro
kanban-trello/out/2393.zip (Errno::EACCES)
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/lib/roku_builder/plugins/loader.rb:49:in `sideload'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/lib/roku_builder/plugins/packager.rb:40:in `package'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/lib/roku_builder.rb:159:in `block in execute_command'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/lib/roku_builder.rb:151:in `each'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/lib/roku_builder.rb:151:in `execute_command'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/lib/roku_builder.rb:69:in `execute'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/lib/roku_builder.rb:45:in `run'
        from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/roku_builder-4.2.0/bin/roku:9:in `<top (required)>'
        from C:/Ruby24-x64/bin/roku:22:in `load'
        from C:/Ruby24-x64/bin/roku:22:in `<main>'
@lvcabral
Copy link
Contributor Author

I'm not sure how to fix this, will investigate it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant