Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building fulcio server complains about missing go.sum in github.com/coreos/go-oidc/v3/oidc #62

Closed
endorama opened this issue Mar 26, 2021 · 5 comments

Comments

@endorama
Copy link
Contributor

endorama commented Mar 26, 2021

After #57 trying to build the project I encountered an error:

$ make
swagger generate server -f openapi.yaml -q -r COPYRIGHT.txt -t pkg/generated --exclude-main -A fulcio_server --exclude-spec --flag-strategy=pflag -P github.com/coreos/go-oidc/v3/oidc.IDToken
swagger generate client -f openapi.yaml -q -r COPYRIGHT.txt -t pkg/generated -P github.com/coreos/go-oidc/v3/oidc.IDToken
go build ./cmd/server
pkg/generated/restapi/configure_fulcio_server.go:30:2: missing go.sum entry needed to verify package github.com/coreos/go-oidc/v3/oidc (imported by github.com/sigstore/fulcio/pkg/generated/restapi) is provided by exactly one module; to add:
	go get github.com/sigstore/fulcio/pkg/generated/restapi
Makefile:24: recipe for target 'server' failed
make: *** [server] Error 1

Easy workaround is to run the provided command (go get github.com/sigstore/fulcio/pkg/generated/restapi) but I was wondering if this is expected or should be fixed.

I'm a bit confused about go getting part of the package I'm trying to build locally and what side effects this may produce.

@dlorenc
Copy link
Member

dlorenc commented Mar 27, 2021

Yeah that is strange. What version of go are you using? I know a lot has changed here in Go 1.16.

@endorama
Copy link
Contributor Author

I'm using 1.15.10. I tried cleaning the package with go clean -i but the error now does not show up anymore. Any idea how can I revert go packages to the status before the go get (other than go clean)?

@dlorenc
Copy link
Member

dlorenc commented Mar 29, 2021

Any idea how can I revert go packages to the status before the go get (other than go clean)?

Whoa, no idea. I didn't even know there was a go clean command!

@endorama
Copy link
Contributor Author

endorama commented Apr 1, 2021

So I'm not able to reproduce this anymore to find the cause or troubleshoot it.

Feel free to close it then and thanks for the help.

@dlorenc
Copy link
Member

dlorenc commented Apr 1, 2021

Thanks for trying!

@dlorenc dlorenc closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants