Skip to content

Update install_deps.sh for current version of zlib#18

Open
adriantich wants to merge 1 commit intonunofonseca:masterfrom
adriantich:patch-1
Open

Update install_deps.sh for current version of zlib#18
adriantich wants to merge 1 commit intonunofonseca:masterfrom
adriantich:patch-1

Conversation

@adriantich
Copy link
Copy Markdown

there was a 404 error for the version 1.2.13, this way it will download the current one

there was a 404 error for the version 1.2.13, this way it will download the current one
@nunofonseca nunofonseca requested a review from Copilot June 18, 2025 17:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the install_deps.sh script to fetch the latest zlib release instead of the now-missing v1.2.13, avoiding 404 errors during dependency installation.

  • Switched from a hard-coded zlib 1.2.13 URL to the current/zlib.tar.gz endpoint
  • Adjusted extraction and directory navigation to handle the dynamic version folder

Comment thread install_deps.sh
wget -c http://zlib.net/zlib-1.2.13.tar.gz
tar xvzf zlib-1.2.13.tar.gz
pushd zlib-1.2.13
wget -c http://zlib.net/current/zlib.tar.gz
Copy link

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

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

Consider using HTTPS for the download URL to ensure integrity and prevent man-in-the-middle tampering (e.g., https://zlib.net/current/zlib.tar.gz).

Suggested change
wget -c http://zlib.net/current/zlib.tar.gz
wget -c https://zlib.net/current/zlib.tar.gz

Copilot uses AI. Check for mistakes.
Comment thread install_deps.sh
pushd zlib-1.2.13
wget -c http://zlib.net/current/zlib.tar.gz
tar xvzf zlib.tar.gz
pushd zlib-*
Copy link

Copilot AI Jun 18, 2025

Choose a reason for hiding this comment

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

[nitpick] Using a glob (zlib-*) can match unintended folders if leftovers exist. Capture the extracted directory name (e.g., parsing tar tzf ... | head -1) into a variable and pushd that explicitly for more reliable navigation.

Suggested change
pushd zlib-*
ZLIB_DIR=$(tar tzf zlib.tar.gz | head -1 | cut -f1 -d"/")
pushd $ZLIB_DIR

Copilot uses AI. Check for mistakes.
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