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

using simulator in other project does not fetch ms-tpm-20-ref #274

Closed
tobuh opened this issue Dec 22, 2022 · 1 comment
Closed

using simulator in other project does not fetch ms-tpm-20-ref #274

tobuh opened this issue Dec 22, 2022 · 1 comment

Comments

@tobuh
Copy link

tobuh commented Dec 22, 2022

Hi

I am referencing your simulator in my project, making my code better testable.

import "github.com/google/go-tpm-tools/simulator"
...
simulator.Get()
...

go mod vendor does fetch everything, except the folder ms-tpm-20-ref, which then results in failure on testing (missing header files).

When downloading the ms-tpm-20-ref folder manually to the appropiate vendor folder, everything works as expected.

What am I doing wrong?

Cheers
Tobi

@tobuh
Copy link
Author

tobuh commented Dec 25, 2022

Found that this is a general issue with cgo: golang/go#26366

Propably ms-tpm-20-ref is too big for workarounds, mentioned in the issue. So I as a workaround I precompiled the static libs.

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

1 participant