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

Multiple Hash Mismatches Cause Valid Hash to be Reported as a Mismatch #83

Closed
ericevenchick opened this issue Dec 8, 2016 · 0 comments

Comments

@ericevenchick
Copy link
Contributor

Using this input section:

inputs:
        "/":
                type: "tar"
                tag:  "ubuntu-base+gcc"
                silo:
                        - "file+ca://./wares"
                        - "http+ca://repeatr.s3.amazonaws.com/assets/"
        "/task/src/gcc":
                type: "tar"
                hash: ""
                silo: "https://ftp.gnu.org/gnu/gcc/gcc-6.2.0/gcc-6.2.0.tar.gz"
        "/task/src/mpfr":
                type: "tar"
                hash: "zDDUnHejvCr6AOuxeJHXgG4tDtvB6_tVpmC8aIQFSsQmYBokgJxXtb2TeWdul9yZ"
                silo: "https://ftp.gnu.org/gnu/mpfr/mpfr-3.1.5.tar.gz"
        "/task/src/gmp":
                type: "tar"
                hash: "mbO3LDXQDhJZvH9hKPUFYbidQc9tI8qkSqVvstJWGfdT4S3u6y2mDboltFVNjYKY"
                silo: "https://ftp.gnu.org/gnu/gmp/gmp-6.1.1.tar.bz2"
        "/task/src/mpc":
                type: "tar"
                hash: "WfzjtnEfTaA-NaczWSMymCVxH8ydkaUa44wlfbilZnBt_H5KNaXq4zChZJ7qFdiQ"
                silo: "https://ftp.gnu.org/gnu/mpc/mpc-1.0.3.tar.gz"

The mpc hash is reported as invalid.

WARN[12-08|01:08:22] Error during materialize                 input=/task/src/mpc type=tar hash=WfzjtnEfTaA-NaczWSMymCVxH8ydkaUa44wlfbilZnBt_H5KNaXq4zChZJ7qFdiQ error="Hash Mismatch: expected \"WfzjtnEfTaA-NaczWSMymCVxH8ydkaUa44wlfbilZnBt_H5KNaXq4zChZJ7qFdiQ\", got \"WfzjtnEfTaA-NaczWSMymCVxH8ydkaUa44wlfbilZnBt_H9KNaXq4zChZJ7qFdiQ\" from " elapsed=0.836

However. this hash is valid. Other hashes are not, but this one is reported as an error despite matching.

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

No branches or pull requests

1 participant