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

Checksum of compiled output changes even if input is exactly the same #156

Open
felipecrs opened this issue Aug 26, 2023 · 0 comments
Open

Comments

@felipecrs
Copy link

I would expect the compiled output to match the checksum in case nothing has changed.

git clone https://github.com/felipecrs/fixdockergid
cd fixdockergid
$ shc -S -r -f _fixdockergid.sh -o _fixdockergid && sha256sum _fixdockergid
a19bcd70436a7b4842f2db297b7c8c6ac48034fe329b35225bd2dea39a3cbbfd  _fixdockergid

$ shc -S -r -f _fixdockergid.sh -o _fixdockergid && sha256sum _fixdockergid
a41a0d0a40270c063d72fed85fa4df3692b047a2a3e4f03d2d243c828b3cdc74  _fixdockergid

Or if this has something to do with traceability or security, it would be nice to have a flag to control such behavior (I already tried toggling several flags with no difference in the results).

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