Could we use something better than zip for the dmd package?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Dec 23 00:56:08 PST 2011
On 12/23/11 2:48 AM, Andrei Alexandrescu wrote:
> On 12/21/11 5:52 PM, Vladimir Panteleev wrote:
>> On Wednesday, 21 December 2011 at 23:48:57 UTC, Andrei Alexandrescu
>> wrote:
>>> On 12/21/11 5:45 PM, Vladimir Panteleev wrote:
>>>> On Wednesday, 21 December 2011 at 23:38:22 UTC, Walter Bright wrote:
>>>>> Hmm, can you explain more about hosting the zip files on github?
>>>>
>>>> 1) Go to a GitHub project
>>>> 2) Open the Downloads tab
>>>> 3) Click "Choose a new file"
>>>> 4) Enter a short description
>>>> 5) Click "Start Upload"
>>>>
>>>> That's all. You can even link directly to GitHub downloads.
>>>
>>> 1. How do we do that programmatically?
>>
>> Downloads are programmable with GitHub's API. They have an easy-to-use
>> script, too:
>>
>> https://github.com/github/upload
>
> I got the uploading script, and now I'm trying:
>
> ../github_upload test andralex/phobos
>
> where test is a zero-bytes file. The script yields:
>
> ERROR: Target file does not exist
Oops, the code emits that error for files of size zero. Now I wrote a
few bytes to the file, and now the script says:
/Users/aalexandre/.gem/ruby/1.8/gems/xml-simple-1.1.1/lib/xmlsimple.rb:990:in
`find_xml_file': File does not exist:
{"policy":"ewogICAgJ2V4cGlyYXRpb24nOiAnMjExMS0xMi0yM1QwODo1NDowOC4wMDBaJywKICAgICdjb25kaXRpb25zJzogWwogICAgICAgIHsnYnVja2V0JzogJ2dpdGh1Yid9LAogICAgICAgIHsna2V5JzogJ2Rvd25sb2Fkcy9hbmRyYWxleC9waG9ib3MvdGVzdCd9LAogICAgICAgIHsnYWNsJzogJ3B1YmxpYy1yZWFkJ30sCiAgICAgICAgeydzdWNjZXNzX2FjdGlvbl9zdGF0dXMnOiAnMjAxJ30sCiAgICAgICAgWydzdGFydHMtd2l0aCcsICckRmlsZW5hbWUnLCAnJ10sCiAgICAgICAgWydzdGFydHMtd2l0aCcsICckQ29udGVudC1UeXBlJywgJyddCiAgICBdCn0=","redirect":false,"accesskeyid":"1DWESVTPGHQVTX38V182","signature":"lJ03J9S8YTrKnMC9ugK3IRXynM8=","prefix":"downloads/andralex/phobos","mime_type":"application/octet-stream","bucket":"github","expirationdate":"2111-12-23T08:54:08.000Z","acl":"public-read","path":"downloads/andralex/phobos/test"}.
(ArgumentError)
from
/Users/aalexandre/.gem/ruby/1.8/gems/xml-simple-1.1.1/lib/xmlsimple.rb:168:in
`xml_in'
from
/Users/aalexandre/.gem/ruby/1.8/gems/xml-simple-1.1.1/lib/xmlsimple.rb:203:in
`xml_in'
from ./github_upload:102
What am I doing wrong?
Thanks,
Andrei
More information about the Digitalmars-d
mailing list