HashLoad / boss

Dependency Manager for Delphi and Lazarus
https://t.me/hashload
MIT License
529 stars 94 forks source link

Where's the first hash in boss-lock.json come from? #121

Open peardox opened 2 years ago

peardox commented 2 years ago

I'm writing a little Wizard that outputs a directory that looks very similar to e.g. https://github.com/Embarcadero/P4D-Data-Sciences/ as it's based on that layout. The 'Wizard' is just doing Token replacement so the end-product is a new set of components. This is possible as the originals have extremely minimal changes when creating a variant component.

The boss-lock.json I'm looking at starts....

{
    "hash": "d41d8cd98f00b204e9800998ecf8427e",
    "updated": "2022-06-08T17:04:13.2794469-07:00",
    "installedModules": {

I know that everything after installedModules is constant but am worried that the hash may be a hash of the files in the folder(s) that contain the boss-lock.json. If this is true how do I calculate one?

If the hash won't break anything then I've got nothing to worry about of course... What happens if I omit it? I assume it's only relevant if you've got boss installed.