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

Add content hashes to output #18

Open
flaxed opened this issue Nov 17, 2020 · 1 comment
Open

Add content hashes to output #18

flaxed opened this issue Nov 17, 2020 · 1 comment

Comments

@flaxed
Copy link
Contributor

flaxed commented Nov 17, 2020

The compiled package output should provide stable hashes, which will be a helpful feature for tooling consuming the compiled content.

These would be both per item and for the whole package output.

Per item hashes should take into account:

  • Metadata such as attributes
  • Item properties like name and type
  • Content such as fields and sub-items
@andyburke
Copy link

I think it may be useful to break this into two different pieces:

  1. A stable id/hash that does not change as the item itself changes in various ways (added attributes, etc)
  2. A hash of the item definition as it is today, such that you could uniquely identify that version of it

I think it's difficult to come up with a way to have a stable id/hash that would be deterministic across clean runs. (Hence maybe just hashing item name and type together is the best solution for that, but will change the hash if the item is renamed.)

Hashing the item definition is, I think, useful for tooling so you can understand if anything about it has changed vs. something like your last build.

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

2 participants