Skip to content

feat(go): --enum-type-name-suffix to avoid same-package enum conflicts#3085

Closed
alpoi wants to merge 4 commits into
glideapps:masterfrom
alpoi:go-enum-fix
Closed

feat(go): --enum-type-name-suffix to avoid same-package enum conflicts#3085
alpoi wants to merge 4 commits into
glideapps:masterfrom
alpoi:go-enum-fix

Conversation

@alpoi

@alpoi alpoi commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a --enum-type-name-suffix flag (defaults to false) that will generate Golang enums with their type appended to member names (e.g. Red Colour = "RED" -> RedColour Colour = "RED"), resolving an issue with conflicting enums in the same package.

Related Issue

#2624

Motivation and Context

See the issue above for motivation / context, previous behaviour, new behaviour, and test instructions.

@github-actions

Copy link
Copy Markdown

No generated-output differences

✅ This PR does not change generated outputs.

@github-actions

Copy link
Copy Markdown

No generated-output differences

✅ This PR does not change generated outputs.

@schani

schani commented Jul 24, 2026

Copy link
Copy Markdown
Member

I have to first sort out this Scale CI issue, apologies.

@github-actions

Copy link
Copy Markdown

No generated-output differences

✅ This PR does not change generated outputs.

@github-actions

Copy link
Copy Markdown

Generated-output differences

1 files differ — 0 modified, 1 new, 0 deleted
187 changed lines — +187 / −0

Open the generated-output report →

@schani

schani commented Jul 24, 2026

Copy link
Copy Markdown
Member

#3086 was a better fix, but I wouldn't have found it without your work. Thank you so much!

@schani schani closed this Jul 24, 2026
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.

2 participants