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

WeightedPage cannot be used in union etc. anymore #5850

Closed
bep opened this issue Apr 13, 2019 · 1 comment

Comments

Projects
None yet
1 participant

@bep bep added the Bug label Apr 13, 2019

@bep bep added this to the v0.55.2 milestone Apr 13, 2019

@bep bep self-assigned this Apr 13, 2019

bep added a commit to bep/hugo that referenced this issue Apr 13, 2019

Fix WeightedPages in union etc.
We introduced a callback func() to get the owner Page in 0.55.0.

Sadly, funcs is  not comparable type in Go.

This commit replaces the func with a struct pointer that wraps the Page.

Fixes gohugoio#5850
@bep

This comment has been minimized.

Copy link
Member Author

commented Apr 13, 2019

Also see #5852

@bep bep closed this in #5853 Apr 13, 2019

bep added a commit that referenced this issue Apr 13, 2019

Fix WeightedPages in union etc.
We introduced a callback func() to get the owner Page in 0.55.0.

Sadly, funcs is  not comparable type in Go.

This commit replaces the func with a struct pointer that wraps the Page.

Fixes #5850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.