Skip to content

Fix broken Dockerfile due to wrong mv argument#56

Open
FrostKiwi wants to merge 3 commits into
ViperX7:mainfrom
FrostKiwi:main
Open

Fix broken Dockerfile due to wrong mv argument#56
FrostKiwi wants to merge 3 commits into
ViperX7:mainfrom
FrostKiwi:main

Conversation

@FrostKiwi

@FrostKiwi FrostKiwi commented Apr 12, 2023

Copy link
Copy Markdown

I was getting the error the following error:

[...]
  => CACHED [ 5/10] RUN git clone https://github.com/ViperX7/llama.cpp /llama.cpp                                                                           0.0s
 => CACHED [ 6/10] RUN cd /llama.cpp && make                                                                                                               0.0s
 => ERROR [ 7/10] RUN mv /llama.cpp/main /main                                                                                                             0.3s
------
 > [ 7/10] RUN mv /llama.cpp/main /main:
#0 0.279 mv: cannot move '/llama.cpp/main' to a subdirectory of itself, '/main'
------
failed to solve: executor failed running [/bin/sh -c mv /llama.cpp/main /main]: exit code: 1

I fixed it by changing the mv command from /llama.cpp/main /main to /llama.cpp /main.
But then I ran into:

[...]
 => CACHED [ 5/10] RUN git clone https://github.com/ViperX7/llama.cpp /llama.cpp                                                                           0.0s
 => CACHED [ 6/10] RUN cd /llama.cpp && make                                                                                                               0.0s
 => ERROR [ 7/10] RUN mv /llama.cpp /main                                                                                                                  0.3s
------
 > [ 7/10] RUN mv /llama.cpp /main:
#0 0.286 mv: cannot remove '/llama.cpp/.devops': Invalid argument
#0 0.287 mv: cannot remove '/llama.cpp/prompts': Invalid argument
#0 0.287 mv: cannot remove '/llama.cpp/spm-headers': Invalid argument
#0 0.288 mv: cannot remove '/llama.cpp/examples/perplexity': Invalid argument
#0 0.288 mv: cannot remove '/llama.cpp/examples/quantize': Invalid argument
#0 0.289 mv: cannot remove '/llama.cpp/examples/embedding': Invalid argument
#0 0.289 mv: cannot remove '/llama.cpp/examples/main': Invalid argument
#0 0.289 mv: cannot remove '/llama.cpp/models': Invalid argument
#0 0.290 mv: cannot remove '/llama.cpp/.git/refs/heads': Invalid argument
#0 0.290 mv: cannot remove '/llama.cpp/.git/refs/remotes/origin': Invalid argument
#0 0.291 mv: cannot remove '/llama.cpp/.git/objects/pack': Invalid argument
#0 0.292 mv: cannot remove '/llama.cpp/.git/hooks': Invalid argument
#0 0.292 mv: cannot remove '/llama.cpp/.git/info': Invalid argument
#0 0.292 mv: cannot remove '/llama.cpp/.git/logs/refs/heads': Invalid argument

, so I sidestepped this issue by simply using cp instead.

@FrostKiwi

FrostKiwi commented Apr 12, 2023

Copy link
Copy Markdown
Author

I was wrong regarding the path. The issue lied with the deletion of files by use of mv.
llama.cpp/main /main was correct afterall.

@FrostKiwi

Copy link
Copy Markdown
Author

Reopened because of #66

@FrostKiwi FrostKiwi reopened this Apr 24, 2023
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

Successfully merging this pull request may close these issues.

1 participant