Skip to content

flock creates executable file #102531

Closed
Closed

Description

@daym

I tried this:

cargo build # anything

I expected to see this happen: The only regular files with executable bit inside target/ are the actual ELF executables.

Instead, this happened: The lock files for the incremental build also have the executable bit set (for example ./target/debug/incremental/ex1-zjfb4s71is3b/s-ge02ugy8lg-ga9xze.lock in a cargo newed example).

Meta

cargo 1.63.0-nightly (3f052d8ee 2022-05-12)

Same in current rust HEAD commit.

rustc --version --verbose:

rustc 1.63.0-nightly (c52b9c10b 2022-05-16)
binary: rustc
commit-hash: c52b9c10bfb5164015eb977ff498e0597ae63eb1
commit-date: 2022-05-16
host: x86_64-unknown-linux-musl
release: 1.63.0-nightly
LLVM version: 14.0.4

Activity

  1. added a commit that references this issue on Oct 15, 2022
  2. added a commit that references this issue on Oct 18, 2022
  3. aDotInTheVoid commented on Oct 24, 2022

    @aDotInTheVoid
    Member
    nixon@Ashtabula:/tmp/x$ cargo +nightly b
       Compiling x v0.1.0 (/tmp/x)
        Finished dev [unoptimized + debuginfo] target(s) in 0.62s
    nixon@Ashtabula:/tmp/x$ ls -l target/debug/incremental/x-3s8v232olbyl4/s-gern9fvwl5-sqix3a.lock
    -rw------- 1 nixon nixon 0 Oct 24 15:21 target/debug/incremental/x-3s8v232olbyl4/s-gern9fvwl5-sqix3a.lock
    

    This seems to be fixed on latest nightly, so this issue can be closed

  4. added a commit that references this issue on Jan 6, 2023
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

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions