Skip to main content

VerifySourceFile

func VerifySourceFile(ctx context.Context, sourcePath, seedPath string, expected Digest) (VerifyInfo, error)

VerifySourceFile verifies the seed hash before reopening the seed for the complete source pass, so untrusted seed contents are not used unchecked.

Parameters​

NameTypeDescription
ctxcontext.ContextParameter ctx of VerifySourceFile.
sourcePathstringParameter sourcePath of VerifySourceFile.
seedPathstringParameter seedPath of VerifySourceFile.
expectedDigestParameter expected of VerifySourceFile.

Returns​

(VerifyInfo, error)

Source​

This page is generated from SDK source metadata and the translation catalog.