Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llamacpp/native/install-vulkan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
main() {
set -eux -o pipefail

apt-get install -y glslc libvulkan-dev
apt-get install -y glslc libvulkan-dev spirv-headers

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

Running apt-get install without a preceding apt-get update in the same execution block can lead to build failures in Docker environments if the package index is stale. Additionally, cleaning up /var/lib/apt/lists/* is best practice to maintain consistency with other scripts in the repository (such as scripts/apt-install.sh) and to minimize the footprint of the build layer.

Suggested change
apt-get install -y glslc libvulkan-dev spirv-headers
apt-get update
apt-get install -y glslc libvulkan-dev spirv-headers
rm -rf /var/lib/apt/lists/*
References
  1. The repository style guide prioritizes correctness and maintainability. Ensuring a reliable build process by updating package indexes and cleaning up is essential for these goals. (link)

}

main "$@"
Expand Down