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

Fix broken Dockerfile due to wrong mv argument #56

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

FrostKiwi
Copy link

@FrostKiwi FrostKiwi commented Apr 12, 2023

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
Copy link
Author

FrostKiwi commented Apr 12, 2023

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
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