You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Mark Reibert (JIRA)" <ji...@apache.org> on 2014/02/26 01:24:19 UTC

[jira] [Commented] (BUILDR-694) "buildr upload" fails: wrong number of arguments in progress bar read()

    [ https://issues.apache.org/jira/browse/BUILDR-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13912311#comment-13912311 ] 

Mark Reibert commented on BUILDR-694:
-------------------------------------

It looks like the move to IO.copy_stream in [this Ruby commit|https://github.com/ruby/ruby/commit/b386b25aac3ce3a372d1c7ff601e2d737932be5a] is the source of the break. This means "buildr upload" is broken with Ruby 2.0.0 and later.

> "buildr upload" fails: wrong number of arguments in progress bar read()
> -----------------------------------------------------------------------
>
>                 Key: BUILDR-694
>                 URL: https://issues.apache.org/jira/browse/BUILDR-694
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.4.15
>            Reporter: Mark Reibert
>         Attachments: 0001-Support-the-two-argument-form-of-StringIO-read-i.e.-.patch
>
>
> The upload task fails with the following error:
> bash$ buildr upload
> ...
> Deploying packages from <whatever>
> Deploying <whatever>:pom:<version>
> Buildr aborted!<whatever>-<version>:   0% |                                                                                                             |       0B/231B ETA:  --:--:--
> ArgumentError : wrong number of arguments (2 for 1)
> It appears at some point (and I didn't track it down) the two-argument form of IO::read() is being called during the HTTP PUT. I'll attach a patch that fixes the problem
> bash$ buildr --version
> Buildr 1.4.15
> bash$ ruby --version
> ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
> bash$ java -version
> java version "1.7.0_51"
> OpenJDK Runtime Environment (fedora-2.4.5.0.fc19-x86_64 u51-b31)
> OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)