Skip to content

rustpkg: Can't find libraries. #9948

Closed
Closed
@dpc

Description

@dpc

I want to be able to use rustpkg to build current project like this:

[mutex:rust/test]% cat src/hellobin/main.rs
extern mod hello;

fn main() {
            hello::world();
}

[mutex:rust/test]% rustpkg install github.com/steveklabnik/hello
WARNING: The Rust package manager is experimental and may be unstable
(...)
note: Installed package github.com/steveklabnik/hello-0.1 to /home/dpc/lab/rust/test/.rust

[mutex:rust/test]% rustpkg build hellobin
WARNING: The Rust package manager is experimental and may be unstable
task <unnamed> failed at 'Unhandled condition: nonexistent_package: (package_id::PkgId{path: std::path::PosixPath{is_absolute: false, components: ~[~"hello"]}, short_name: ~"hello", version: NoVersion}, ~"supplied path for package dir does not exist, and couldn't interpret it as a URL fragment")', /home/dpc/opt/src/rust/src/libstd/condition.rs:131
task <unnamed> failed at 'receiving on closed channel', /home/dpc/opt/src/rust/src/libstd/rt/comm.rs:188

rustc version works as expected:

[mutex:rust/test]% rustc src/hellobin/main.rs
[mutex:rust/test]%

So, I'd expect rustpkg build hellobin to work as well and just trigger corresponding rustc command.

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

    Issue actions