Skip to content

Conversation

mitar
Copy link
Contributor

@mitar mitar commented Sep 20, 2025

Fixes #552.

It does it only one iteration, but I think this is enough. Maybe in the future (if somebody asks) we could do it in a loop until nothing is interpolated anymore. But I think this is fine for now.

}

if value.Enum, err = interpolate(value.Enum, vars, nil); err != nil {
return fmt.Errorf("enum for %s: %s", value.Summary(), err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This Enum interpolation was duplicated and run twice. I removed it. This is unrelated to this PR though.

mitar added a commit to charon/charon that referenced this pull request Sep 21, 2025
Copy link
Owner

@alecthomas alecthomas left a comment

Choose a reason for hiding this comment

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

Seems reasonable, thanks!

@alecthomas alecthomas merged commit a62e6a4 into alecthomas:master Sep 22, 2025
5 checks passed
@mitar
Copy link
Contributor Author

mitar commented Sep 22, 2025

Thanks for quick merge!

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.

Support variable interpolation in set

2 participants