Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"rustpkg build foo" does not work properly with sub directories #10101

Closed
erickt opened this issue Oct 27, 2013 · 1 comment
Closed

"rustpkg build foo" does not work properly with sub directories #10101

erickt opened this issue Oct 27, 2013 · 1 comment

Comments

@erickt
Copy link
Contributor

erickt commented Oct 27, 2013

rustpkg build ... with subdirectories overwrites binaries. Here's an example of the problem:

% mkdir -p src/a/b src/a/c
% echo 'fn main() { println!("b"); }' > src/a/b/main.rs
% echo 'fn main() { println!("c"); }' > src/a/c/main.rs
% rustpkg build a
% find build
build/x86_64-apple-darwin
build/x86_64-apple-darwin/a
build/x86_64-apple-darwin/a/a
% ./build/x86_64-apple-darwin/a/a
c

The workaround is to explicitly specify the sub executable:

% rustpkg build a/b
% rustpkg build a/c
% find build
build/x86_64-apple-darwin
build/x86_64-apple-darwin/a
build/x86_64-apple-darwin/a/b
build/x86_64-apple-darwin/a/b/b
build/x86_64-apple-darwin/a/c
build/x86_64-apple-darwin/a/c/c
% ./build/x86_64-apple-darwin/a/b/b
b
% ./build/x86_64-apple-darwin/a/c/c
c

cc @catamorphism

@emberian
Copy link
Member

rustpkg is gone

flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 29, 2022
…dnet

Move manual_clamp to nursery

As discussed in rust-lang/rust-clippy#9484 (comment) and decided in the [Zulip meeting](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/Meeting.202022-12-13/near/315626226)

changelog: Moved [`manual_clamp`] to `nursery` (Now allow-by-default)
[rust-lang#10101](rust-lang/rust-clippy#10101)
<!-- changelog_checked -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants