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

Update Hsdecipher script #51057

Merged
merged 23 commits into from
Sep 30, 2024
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
6 changes: 3 additions & 3 deletions recipes/hsdecipher/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{% set name = "HSDecipher" %}
{% set version = "1.0.0" %}
{% set version = "1.1.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/zx0223winner/{{name|lower}}_conda/archive/refs/tags/v{{version}}.tar.gz
sha256: 54ab84f8584c69a50db4678b49279b0a0b4b05cf0028eec9c2f2ea2205917b76
sha256: 7ac882c835b53a78e4dfe5120037a8237f5e79a5ab94d7d0edd893d5851007ba
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Checksum Verification Failed

The verification script could not compute the SHA256 checksum because the sha256sum command is unavailable. Please update the script to use openssl for checksum calculation:

#!/bin/bash
# Description: Verify the SHA256 checksum of the source archive

# Extract version and checksum from meta.yaml
version=$(grep 'version = ' recipes/hsdecipher/meta.yaml | cut -d '"' -f 2)
expected_checksum=$(grep 'sha256: ' recipes/hsdecipher/meta.yaml | cut -d ' ' -f 4)

# Download the archive
curl -L "https://github.com/zx0223winner/hsdecipher_conda/archive/refs/tags/v${version}.tar.gz" -o hsdecipher.tar.gz

# Compute the checksum using openssl
computed_checksum=$(openssl dgst -sha256 hsdecipher.tar.gz | awk '{print $2}')

# Compare checksums
echo "Expected checksum: $expected_checksum"
echo "Computed checksum: $computed_checksum"
if [ "$expected_checksum" = "$computed_checksum" ]; then
    echo "Checksums match."
else
    echo "Checksums do not match!"
fi

# Clean up
rm hsdecipher.tar.gz
🔗 Analysis chain

SHA256 checksum has been updated.

The SHA256 checksum has been updated, which is necessary due to the version change. This ensures the integrity of the downloaded package.

To ensure the correctness of the new checksum, please verify it against the source archive. You can use the following script to download the archive and compute its checksum:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the SHA256 checksum of the source archive

# Extract version and checksum from meta.yaml
version=$(grep 'version = ' recipes/hsdecipher/meta.yaml | cut -d '"' -f 2)
expected_checksum=$(grep 'sha256: ' recipes/hsdecipher/meta.yaml | cut -d ' ' -f 4)

# Download the archive
curl -L "https://github.com/zx0223winner/hsdecipher_conda/archive/refs/tags/v${version}.tar.gz" -o hsdecipher.tar.gz

# Compute the checksum
computed_checksum=$(sha256sum hsdecipher.tar.gz | cut -d ' ' -f 1)

# Compare checksums
echo "Expected checksum: $expected_checksum"
echo "Computed checksum: $computed_checksum"
if [ "$expected_checksum" = "$computed_checksum" ]; then
    echo "Checksums match."
else
    echo "Checksums do not match!"
fi

# Clean up
rm hsdecipher.tar.gz

Length of output: 1280


build:
number: 1
number: 0
noarch: python
script: bash conda_build_package.sh
run_exports:
Expand Down