Skip to content

Conversation

thaJeztah
Copy link
Member

This was updated in abc85c3, but looks to have been unintentional.

This was updated in abc85c3, but looks
to have been unintentional.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

thaJeztah commented Feb 10, 2025

Derp, looks like it actually no longer allows go1.22 😞

=== Errors
Error: util/buildflags/attests_cty.go:27:21: cannot range over eachElement(in) (value of type iter.Seq[cty.Value]): requires go1.23 or later (-lang was set to go1.22; check go.mod)
Error: util/buildflags/cache_cty.go:26:21: cannot range over eachElement(in) (value of type iter.Seq[cty.Value]): requires go1.23 or later (-lang was set to go1.22; check go.mod)
Error: util/buildflags/export_cty.go:26:21: cannot range over eachElement(in) (value of type iter.Seq[cty.Value]): requires go1.23 or later (-lang was set to go1.22; check go.mod)
Error: util/buildflags/secrets_cty.go:33:21: cannot range over eachElement(in) (value of type iter.Seq[cty.Value]): requires go1.23 or later (-lang was set to go1.22; check go.mod)
Error: util/buildflags/ssh_cty.go:33:21: cannot range over eachElement(in) (value of type iter.Seq[cty.Value]): requires go1.23 or later (-lang was set to go1.22; check go.mod)

Looks like it's because of a utility function that was added that uses Yield;

func eachElement(in cty.Value) iter.Seq[cty.Value] {
return func(yield func(v cty.Value) bool) {
for elem := in.ElementIterator(); elem.Next(); {
_, value := elem.Element()
if isEmptyOrUnknown(value) {
continue
}
if !yield(value) {
return
}
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant