[racket] raco pkg install with zipfile

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat May 31 02:24:34 EDT 2014

At Fri, 30 May 2014 20:08:33 -0400, Tony Garnock-Jones wrote:
> I have a multi-collection package,
> https://github.com/tonyg/racket-bitsyntax/. When I download an archive
> of the package and try to install it using `raco pkg install`, it
> doesn't work.
> 
> Is it supposed to work, or am I doing something wrong?

Unfortunately, there's a mismatch between the way GitHub packages a
".zip" and the way `raco pkg install` uses it. The GitHub-generated
".zip" file has an extra directory layer relative to the layout that
`raco pkg install` expects.

Specifically, "master.zip" has a "racket-bitsyntax-master" directory
that holds everything else, while you really wanted `raco pkg` to see
the "everything else". You can see the extra layer in the output from
`raco pkg`:

> Here's a transcript of the commands I'm trying:
> 
>   $ wget https://github.com/tonyg/racket-bitsyntax/archive/master.zip
>   $ raco pkg install -n bitsyntax master.zip
>   raco setup: version: 6.0.1.8 [3m]
>   [...]
>   raco setup: 1 making:
> <pkgs>/bitsyntax/racket-bitsyntax-master/bitsyntax (bitsyntax)



Posted on the users mailing list.