You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ docker pull alpine:3.15
$ docker run --rm -it alpine:3.15
# touch empty
# echo 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 empty' | sha256sum -c
sha256sum: WARNING: 1 of 1 computed checksums did NOT match
# echo 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 empty' | sha256sum -c
empty: OK
For some reason, the Alpine version of sha256sum requires two spaces between the hash and file path. No other version of sha256sum has this requirement. For instance:
At minimum, sha256sum should output a proper error message. It does at least complain if you pass -w, but this flag should not be required, and the error message is too vague anyway.
# echo 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 empty' | sha256sum -wc
sha256sum: invalid format
sha256sum: WARNING: 1 of 1 computed checksums did NOT match
Even though Alpine may be technically correct in failing, it is definitely a poor experience for newcomers, especially because other versions of sha256sum are more forgiving. This only discourages people from using sha256sum (because it's "broken"), or from using Alpine entirely.
The text was updated successfully, but these errors were encountered:
For some reason, the Alpine version of sha256sum requires two spaces between the hash and file path. No other version of sha256sum has this requirement. For instance:
This was reported in gliderlabs/docker-alpine#174 but was never fixed.
At minimum,
sha256sumshould output a proper error message. It does at least complain if you pass-w, but this flag should not be required, and the error message is too vague anyway.Even though Alpine may be technically correct in failing, it is definitely a poor experience for newcomers, especially because other versions of
sha256sumare more forgiving. This only discourages people from usingsha256sum(because it's "broken"), or from using Alpine entirely.The text was updated successfully, but these errors were encountered: