Skip to content

core: clone service type aliases instead of referencing global slice - #3462

Merged
stephenfin merged 1 commit into
gophercloud:mainfrom
kayrus:clone-alises
Jul 21, 2025
Merged

stephenfin merged 1 commit into
gophercloud:mainfrom
kayrus:clone-alises

Conversation

@kayrus

@kayrus kayrus commented Jul 16, 2025 •

Copy link
Copy Markdown
Contributor

Without this fix modifying the eo.Aliases causes the modification of the global map slice entry.

We might need to enable linter that catches this.

UPD: gocritic doesn't catch this case :(

@kayrus
kayrus requested a review from stephenfin July 16, 2025 11:47
@github-actions github-actions Bot added semver:patch No API change backport-v2 This PR will be backported to v2 labels Jul 16, 2025
This was referenced Jul 16, 2025
@github-actions github-actions Bot added the edit:gophercloud This PR updates common Gophercloud code label Jul 16, 2025
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 63.735%. remained the same
when pulling 9e5efb7 on kayrus:clone-alises
into 04db7d6 on gophercloud:main.

@stephenfin

Copy link
Copy Markdown
Contributor

This should go on top of #3435 once merged.

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

Labels

backport-v2 This PR will be backported to v2 edit:gophercloud This PR updates common Gophercloud code semver:patch No API change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants