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

testscript: make it compile under Go 1.10 #5

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Conversation

rogpeppe
Copy link
Owner

@rogpeppe rogpeppe commented Oct 4, 2018

Making it compile under earlier versions than 1.10 is a bit
harder, so punt for now.

func (nopTestDeps) StartTestLog(w io.Writer) {}

func (nopTestDeps) StopTestLog() error {
return nil
}

// Note: WriteHeapProfile is not needed for Go 1.10.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this rather be "needed to build on Go 1.10, but not actually useful"?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I had the comment wrong. fixed.

Making it compile under earlier versions than 1.10 is a bit
harder, so punt for now.
@rogpeppe rogpeppe merged commit 39d56a4 into master Oct 17, 2018
@mvdan mvdan deleted the 005-go1.10-support branch August 30, 2020 09:16
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.

2 participants