Invalid Fingerprint

Today I started a new project, but I got an invalid fingerprint:

zig build test
/home/manlio/src/zig/src/codeberg.org/manliop/build.zig.zon:1:2: error: invalid fingerprint: 0x163159c8b695f8c6; if this is a new or forked package, use this value: 0x7ec30896471f0bb7
.{

Why zig used a different value?

Thanks

Part of the fingerprint is a checksum of the package name, so if the name changes it invalidates the fingerprint.

The rest of the fingerprint is random.

When a fingerprint is invalid, or missing; zig provides a new, valid, fingerprint you could use.

It is very important that when you make forks you update the fingerprint, even if the name is the same. If you don’t do that then you would be impersonating the original.

2 Likes

@vulpesx, thanks.

I indeed changed the module name.

package name.

Modules are just one thing a package can export.