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

Add golang.org/x/sys dependency to go.mod #89

Merged
merged 2 commits into from
Apr 11, 2019
Merged

Conversation

awly
Copy link
Contributor

@awly awly commented Apr 10, 2019

It's used in TPM FD polling and was missed previously.
This should fix kokoro build too.

It's used in TPM FD polling and was missed previously.
This should fix kokoro build too.
@awly awly added the kokoro:run Enable presubmit tests for non-org members label Apr 10, 2019
@kokoro-team kokoro-team removed the kokoro:run Enable presubmit tests for non-org members label Apr 10, 2019
@awly
Copy link
Contributor Author

awly commented Apr 10, 2019

@tmroeder FYI, I'm vendoring golang.org/x/sys/unix, only because our kokoro environment doesn't support modules yet. Are you ok with that?

@awly
Copy link
Contributor Author

awly commented Apr 11, 2019

OK, since @tmroeder is OOO, i'll merge this. But we can revert later if needed.

@awly awly merged commit 60fe40e into google:master Apr 11, 2019
@tmroeder
Copy link
Contributor

I find it unfortunate that we have to pull in code and add an extra vendor directory so that we can poll a file description in exactly one function in tpmutil. Can we use syscall.Epoll* from the standard library instead? The epoll syscall can perform exactly the function of waiting for an fd to be ready.

I glanced at #75, and I didn't see any discussion about this.

@awly
Copy link
Contributor Author

awly commented Apr 30, 2019

Good point, x/sys/unix doesn't do as much magic as I thought.
Sent #100

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

Successfully merging this pull request may close these issues.

3 participants