Skip to content

Instantly share code, notes, and snippets.

@killerswan
Created May 26, 2012 18:58
Show Gist options
  • Save killerswan/2794946 to your computer and use it in GitHub Desktop.
Save killerswan/2794946 to your computer and use it in GitHub Desktop.
failure to copy on `cargo install rustx`
kunix:temp $ rm -rf .cargo
kunix:temp $
kunix:temp $ cargo init
info: signature ok for '/code/temp/.cargo/sources.json.new'
info: Initialized .cargo in /code/temp/.cargo
kunix:temp $
kunix:temp $ cargo sync
info: fetching source central...
info: fetched source: central
info: no signature for source central
kunix:temp $
kunix:temp $ cargo install rustx
info: Installing with git from https://github.com/killerswan/rustx...
Cloning into '/code/temp/.cargo/work/0LEFMy7zARSLh9Ct'...
remote: Counting objects: 45, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 45 (delta 17), reused 42 (delta 14)
Unpacking objects: 100% (45/45), done.
warning: Copying /code/temp/.cargo/work/0LEFMy7zARSLh9Ct/build/rustt to /code/temp/.cargo/bin failed
warning: Copying /code/temp/.cargo/work/0LEFMy7zARSLh9Ct/build/rustx to /code/temp/.cargo/bin failed
warning: Copying /code/temp/.cargo/work/0LEFMy7zARSLh9Ct/build/_rustx to /code/temp/.cargo/bin failed
kunix:temp $
kunix:temp $ # see cargo.rs at 480 (or 487 on my branch): that call to copy_warn just fails for no obvious reason
kunix:temp $
kunix:temp $ ls -l /code/temp/.cargo/work/0LEFMy7zARSLh9Ct/build/
total 24
-rwxrwxr-x 1 kevin kevin 283 May 26 09:59 rustt
-rwxrwxr-x 1 kevin kevin 271 May 26 09:59 rustx
-rwxrwxr-x 1 kevin kevin 14039 May 26 09:59 _rustx
kunix:temp $
kunix:temp $ ls -l /code/temp/.cargo/bin/
total 0
kunix:temp $ ls -l /code/temp/.cargo/
total 32
drwx------ 2 kevin kevin 4096 May 26 09:58 bin
drwx------ 2 kevin kevin 4096 May 26 09:58 gpg
drwx------ 2 kevin kevin 4096 May 26 09:58 lib
drwx------ 3 kevin kevin 4096 May 26 09:58 sources
-rw-rw-r-- 1 kevin kevin 98 May 26 09:58 sources.json
-rw-rw-r-- 1 kevin kevin 98 May 26 09:58 sources.json.new
-rw-rw-r-- 1 kevin kevin 836 May 26 09:58 sources.json.sig
drwx------ 3 kevin kevin 4096 May 26 09:59 work
kunix:temp $
kunix:temp $ cp -p /code/temp/.cargo/work/0LEFMy7zARSLh9Ct/build/_rustx /code/temp/.cargo/bin
kunix:temp $
kunix:temp $ ls -l /code/temp/.cargo/bin/
total 16
-rwxrwxr-x 1 kevin kevin 14039 May 26 09:59 _rustx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment