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

Modify new bytes.ContainsRune to backward compatible bytes.IndexRune #176

Merged
merged 1 commit into from
Dec 15, 2016

Conversation

theherk
Copy link
Contributor

@theherk theherk commented Dec 15, 2016

The purpose of this change is so that the code is valid in Go < 1.7. I am using hcl/printer in spf13/viper#287. It requires tests in Go < 1.7, so this prevents that from passage. I did a work around using build constraints, but it is pretty ugly. It would be much better without that workaround being required and there will be no impact on hcl.

@mitchellh
Copy link
Contributor

In general we only support the latest Go version and ask you use vendoring to support prior versions. But due to the simplicity of this change I'll take it. :)

@mitchellh mitchellh merged commit 80e628d into hashicorp:master Dec 15, 2016
@theherk
Copy link
Contributor Author

theherk commented Dec 16, 2016

That's great to hear @mitchellh. Thank you for your understanding.

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.

None yet

2 participants