Nilesh Patra <nil...@riseup.net> writes: > On 25/10/24 12:43, Simon Josefsson wrote: >> Hi. I'm working on sigstore-go and it looks like the dependencies are >> now lined up, but I'm getting a build failure -- any ideas how to fix >> this? Is it some search path that needs to be fixed? The lines >> referred in the error message are 'go:embed' statements like this: >> //go:embed repository >> var embeddedRepo embed.FS >> //go:embed othernameBundle.json >> var OthernameBundleRaw []byte >> Build of bd16b6a7 here: >> https://salsa.debian.org/jas/sigstore-go/-/jobs/6483021 > > Simon, that's due to these directories not being copied onto the build > directory. > Adding this in d/rules should do the trick. > > export DH_GOLANG_INSTALL_EXTRA := pkg/tuf/repository pkg/testing/data
Thank you! That works. /Simon >> dh_auto_build -O--builddirectory=_build -O--buildsystem=golang >> cd _build && go install -trimpath -v -p 2 >> github.com/sigstore/sigstore-go/cmd/conformance >> github.com/sigstore/sigstore-go/cmd/sigstore-go >> github.com/sigstore/sigstore-go/examples/oci-image-verification >> github.com/sigstore/sigstore-go/examples/sigstore-go-signing >> github.com/sigstore/sigstore-go/pkg/bundle >> github.com/sigstore/sigstore-go/pkg/fulcio/certificate >> github.com/sigstore/sigstore-go/pkg/root >> github.com/sigstore/sigstore-go/pkg/sign >> github.com/sigstore/sigstore-go/pkg/testing/ca >> github.com/sigstore/sigstore-go/pkg/testing/data >> github.com/sigstore/sigstore-go/pkg/tlog >> github.com/sigstore/sigstore-go/pkg/tuf >> github.com/sigstore/sigstore-go/pkg/util >> github.com/sigstore/sigstore-go/pkg/verify >> src/github.com/sigstore/sigstore-go/pkg/tuf/options.go:26:12: pattern >> repository: no matching files found >> src/github.com/sigstore/sigstore-go/pkg/testing/data/data.go:49:12: pattern >> othernameBundle.json: no matching files found >> dh_auto_build: error: cd _build && go install -trimpath -v -p 2 >> github.com/sigstore/sigstore-go/cmd/conformance >> github.com/sigstore/sigstore-go/cmd/sigstore-go >> github.com/sigstore/sigstore-go/examples/oci-image-verification >> github.com/sigstore/sigstore-go/examples/sigstore-go-signing >> github.com/sigstore/sigstore-go/pkg/bundle >> github.com/sigstore/sigstore-go/pkg/fulcio/certificate >> github.com/sigstore/sigstore-go/pkg/root >> github.com/sigstore/sigstore-go/pkg/sign >> github.com/sigstore/sigstore-go/pkg/testing/ca >> github.com/sigstore/sigstore-go/pkg/testing/data >> github.com/sigstore/sigstore-go/pkg/tlog >> github.com/sigstore/sigstore-go/pkg/tuf >> github.com/sigstore/sigstore-go/pkg/util >> github.com/sigstore/sigstore-go/pkg/verify returned exit code 1 >> make: *** [debian/rules:4: binary] Error 25 >> /Simon > > Thanks > Nilesh >
signature.asc
Description: PGP signature