Skip to content

Adding git in container package dependencies - #1621

Merged
DannyDaemonic merged 1 commit into
ggml-org:masterfrom
jpodivin:adding-git
May 29, 2023
Merged

DannyDaemonic merged 1 commit into
ggml-org:masterfrom
jpodivin:adding-git

Conversation

@jpodivin

@jpodivin jpodivin commented May 28, 2023 •

Copy link
Copy Markdown
Contributor

The build-info.sh script is invoking git on lines 6 and 11. However git is not installed by default in ubuntu base images.

This causes an unhandled exception to occur, which is silently passed during the build.

#1626

For example:
https://github.com/ggerganov/llama.cpp/actions/runs/5100538614/jobs/9168878817#step:6:1266
https://github.com/ggerganov/llama.cpp/actions/runs/5100538614/jobs/9168878743#step:6:864

The build-info.sh script is invoking git on lines 6 and 11.
However git is not installed by default in ubuntu base images.

This causes an unhandled exception to occur, which is silently passed
during the build.

Signed-off-by: Jiri Podivin <[email protected]>
@DannyDaemonic

Copy link
Copy Markdown
Contributor

Good catch. Can you confirm this changes the output from main from main: build = 0 (unknown) to something meaningful?

@jpodivin

Copy link
Copy Markdown
Contributor Author

Good catch. Can you confirm this changes the output from main from main: build = 0 (unknown) to something meaningful?

Certainly. The original build info from the container:

#ifndef BUILD_INFO_H
#define BUILD_INFO_H

#define BUILD_NUMBER 0
#define BUILD_COMMIT "unknown"

#endif // BUILD_INFO_H

and the one I get from container with this patch:

#ifndef BUILD_INFO_H
#define BUILD_INFO_H

#define BUILD_NUMBER 598
#define BUILD_COMMIT "c01c7d2"

#endif // BUILD_INFO_H

@DannyDaemonic
DannyDaemonic merged commit 0e730dd into ggml-org:master May 29, 2023
wbruna pushed a commit to wbruna/llama.cpp that referenced this pull request Jul 2, 2025
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
Git added to build packages for version information in docker image

Signed-off-by: Jiri Podivin <[email protected]>
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
Git added to build packages for version information in docker image

Signed-off-by: Jiri Podivin <[email protected]>
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
Git added to build packages for version information in docker image

Signed-off-by: Jiri Podivin <[email protected]>
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
Git added to build packages for version information in docker image

Signed-off-by: Jiri Podivin <[email protected]>
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
Git added to build packages for version information in docker image

Signed-off-by: Jiri Podivin <[email protected]>
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.

2 participants