-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Backward compatibility 0.2.1 - 0.2.6 #536
Comments
Hello, @rjcoelho , and thank for filing this issue. I believe the change you mention, regarding hashes in the mapping.cfg file, happened some time ago, in Sept of 2017, before the 0.2.3 release. I did a little research on In semver/semver#275 it is said:
However, we should document that
I'll plan to close this issue when the docs are updated to mention that |
@joshrabinowitz thanks for the clarification. I don't use -m option. What I do is git secret hide with 0.2.6 and try to git secret reveal with 0.2.1 |
@rjcoelho , I read the code too quickly. You are correct, after encryption, a hash is always written to the As mentioned above, by my reading of 'semver', it's not /technically/ a bug that persistent files from new versions of git-secret are not backward compatible with older versions of git-secret (though it is certainly inconvenient). Can you upgrade git-secret from 0.2.1 in your appropriate environment? We could add some sort of flag to stop writing checksums to the mappings.cfg file, but I'm hesitant to add a flag just relating to the checksum in mapping.cfg. |
I've add a PR altering CHANGELOG.md to note the backward incompatibility. (See #537) Since this is the first time this has come up (and since the change was made some two years ago) I'm not planning on adding any more docs or code changes related to this topic for now. If you're ok with this resolution, feel free to close this issue, @rjcoelho (assuming github will let you); alternately let us know below! Thanks again. |
Hi,
This is what i get when trying reveal files using 0.2.1 that were hidden using 0.2.6
config/overlays/local/keys.config:d2f1286fad60a1c84dbe0388637f7733c9454d52bcbea8afd46ad2401a5849d2.secret: No such file or directory
Basically mappings how has sha1, which 0.2.1 doesn't understand. This should be an opt-in on 0.2.6 and later.
The text was updated successfully, but these errors were encountered: