Skip to content

rustpkg incorrectly assumes packages have a crate file at the top level #10470

Closed
@catamorphism

Description

@catamorphism

Steps to reproduce:

  1. mkdir -p $HOME/workspace/src
  2. cd $HOME/workspace/src
  3. declare -x RUST_PATH=$HOME/workspace
  4. git clone github.com/bjz/gl-rs
  5. Edit github.com/bjz/gl-rs/src/gen/registry.rs to replace extern mod sax; with extern mod sax = "github.com/bjz/sax-rs";
  6. cd ..
  7. rustpkg install gl-rs/src/gen

You will see:

task '<unnamed>' failed at 'assertion failed: pkg_src.start_dir.join(p).exists()', /Users/tjc/rust/src/librustpkg/lib.rs:520
task '<unnamed>' failed at 'receiving on closed channel', /Users/tjc/rust/src/libstd/rt/comm.rs:198

The problem is that rustpkg is assuming there is a gl-rs/main.rs file, when actually the crate file is gl-rs/src/gen/main.rs. The package ID tells us everything we need to know here, but rustpkg is ignoring that.

cc @bjz

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