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

common/collections: Allow a mix of slice types in append/Scratch.Add #5364

Merged
merged 1 commit into from
Oct 27, 2018

Conversation

bep
Copy link
Member

@bep bep commented Oct 27, 2018

The type handling in these was improved in Hugo 0.49, but this also meant that it was no longer possible to start out with a string slice and later append Page etc. to it.

This commit makes sure that the old behaviour is now possible again by falling back to a []interface{} as a last resort.

Fixes #5361

The type handling in these was improved in Hugo 0.49, but this also meant that it was no longer possible to start out with a string slice and later append `Page` etc. to it.

This commit makes sure that the old behaviour is now possible again by falling back to a `[]interface{}` as a last resort.

Fixes gohugoio#5361
@bep bep merged commit dac7092 into gohugoio:master Oct 27, 2018
@github-actions
Copy link

github-actions bot commented Feb 1, 2022

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Scratch.Add with a mix of types
1 participant