Skip to content

rustpkg: error downloading external dependencies. #9482

Closed
@brendanzab

Description

@brendanzab
Member
extern mod cgmath = "github.com/bjz/cgmath-rs";
rustpkg build basis
WARNING: The Rust package manager is experimental and may be unstable
error: Couldn't find package github.com/bjz/cgmath-rs, which is needed by basis-0.1, in any of the workspaces in the RUST_PATH (~[std::path::PosixPath{is_absolute: true, components: ~[~"Users", ~"brendan", ~"dev", ~"rust", ~"basis-rs", ~".rust"]}, std::path::PosixPath{is_absolute: true, components: ~[~"Users", ~"brendan", ~"dev", ~"rust", ~"basis-rs"]}])
task <unnamed> failed at 'Unhandled condition: nonexistent_package: (package_id::PkgId{path: std::path::PosixPath{is_absolute: false, components: ~[~"github.com", ~"bjz", ~"cgmath-rs"]}, short_name: ~"cgmath-rs", version: NoVersion}, ~"Dependency not found")', /Users/brendan/dev/rust/rust/src/libstd/condition.rs:131
task <unnamed> failed at 'receiving on closed channel', /Users/brendan/dev/rust/rust/src/libstd/rt/comm.rs:188

Activity

catamorphism

catamorphism commented on Sep 25, 2013

@catamorphism
Contributor
thewonderidiot

thewonderidiot commented on Oct 8, 2013

@thewonderidiot

@catamorphism I just spent a bit of time digging into this after noticing that this problem affected me everywhere except in subdirectories of /tmp.

The problem is the os::rename_file here: https://github.com/mozilla/rust/blob/master/src/librustpkg/package_source.rs#L205

It's calling libc::rename, which is returning -1 and throwing errno 18, cross-device link. So it looks like rustpkg will have to copy and delete instead of rename()ing if using /tmp, or maybe just clone into .rust/src directly. Eridius suggested this in #rust: "perhaps there should be a dir in .rust that it clones in to, e.g. .src (to keep it hidden). It can use a lockfile as well, so subsequent invocations of rustpkg can detect stale half-clones, and tell from the lockfile that their owning rustpkg is dead".

catamorphism

catamorphism commented on Oct 15, 2013

@catamorphism
Contributor

I think @thewonderidiot 's hypothesis is likely to be correct, but I have yet to be able to actually reproduce this myself on a Linux machine :-\

Also see: #9871

berleon

berleon commented on Oct 28, 2013

@berleon

@catamorphism I am currently working on adding support for mercurial to rustpkg. Here. Will also look into this issue.

catamorphism

catamorphism commented on Nov 9, 2013

@catamorphism
Contributor

Closing as dup of #10253

added a commit that references this issue on Jan 12, 2023

Auto merge of rust-lang#10142 - EricWu2003:drop_ref-FP, r=llogiq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @steveklabnik@thewonderidiot@catamorphism@brendanzab@berleon

        Issue actions

          rustpkg: error downloading external dependencies. · Issue #9482 · rust-lang/rust