[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pattern schemas/draft-04.json: no matching files found (//go:embed)



Dear DGPT,

Moving my first steps as Go packager, packaging
golang-github-flowstack-go-jsonschema here.

The build fails with this error:

_build/src/github.com/flowstack/go-jsonschema/schemas.go:11:13: pattern schemas/draft-04.json: no matching files found

At those lines in schmas.go, I read:

         //go:embed schemas/draft-04.json
         draft04Source []byte

The schemas/draft-04.json file is present in the source tree base but
not in _build hence, my guess, the error.

I cannot be the first to package some code using //go:embed, what is
the most adopted solution to this issue?

Thanks,
Domenico

-- 
rsa4096: 3B10 0CA1 8674 ACBA B4FE  FCD2 CE5B CF17 9960 DE13
ed25519: FFB4 0CC3 7F2E 091D F7DA  356E CC79 2832 ED38 CB05

Attachment: signature.asc
Description: PGP signature


Reply to: