Skip to content

Error when run build-iso.sh. error: failed to open: /home/rust/src/target/release/.cargo-lock #17

Description

@sduerpang

I'm using centos 7.7
here is my system info :

Linux izj6c0hm1pb36m6j7ikro0z 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

[root@izj6c0hm1pb36m6j7ikro0z mpc]# ./build-iso.sh
Sending build context to Docker daemon 4.833 MB
Step 1/13 : FROM ubuntu:16.04
---> 77be327e4b63
Step 2/13 : RUN apt-get update && apt-get install -y build-essential cmake curl file git sudo xutils-dev && apt-get clean && rm -rf /var/lib/apt/lists/* && useradd rust --user-group --create-home --shell /bin/bash --groups sudo
---> Using cache
---> 02828d7d6d7e
Step 3/13 : ADD sudoers /etc/sudoers.d/nopasswd
---> Using cache
---> c619b0d3cd61
Step 4/13 : USER rust
---> Using cache
---> 56be85d8656e
Step 5/13 : RUN mkdir -p /home/rust/libs /home/rust/src
---> Using cache
---> 7d3edba069f2
Step 6/13 : RUN sudo chmod 777 /home/rust/*
---> Using cache
---> a4e4f917a3e6
Step 7/13 : ENV PATH /home/rust/.cargo/bin:/usr/local/musl/bin:/usr/local/bin:/usr/bin:/bin
---> Using cache
---> 059358b8d209
Step 8/13 : RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && rustup default 1.12.1 && rustup target add x86_64-unknown-linux-musl
---> Using cache
---> 0dbf2c9df03d
Step 9/13 : ADD cargo-config.toml /home/rust/.cargo/config
---> Using cache
---> d8f78af7ff9b
Step 10/13 : WORKDIR /home/rust/libs
---> Using cache
---> 2fb21bfde489
Step 11/13 : ADD musl /home/rust/libs/musl
---> Using cache
---> 2390ac2e9730
Step 12/13 : RUN sudo chown -R rust:rust /home/rust/libs && cd musl && ./configure && make && sudo make install && cd .. && rm -rf musl
---> Using cache
---> d41e8d085464
Step 13/13 : WORKDIR /home/rust/src
---> Using cache
---> aaf83aef344a
Successfully built aaf83aef344a
Updating registry https://github.com/rust-lang/crates.io-index
error: failed to open: /home/rust/src/target/release/.cargo-lock

To learn more, run the command again with --verbose.

how can i fix it?

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