Skip to content

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

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

core: clone service type aliases instead of referencing global slice#3462
stephenfin merged 1 commit intogophercloud:mainfrom
kayrus:clone-alises

Conversation

@kayrus
Copy link
Copy Markdown
Contributor

@kayrus kayrus commented Jul 16, 2025

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.

@stephenfin stephenfin merged commit bbf1905 into gophercloud:main Jul 21, 2025
13 checks passed
@kayrus kayrus deleted the clone-alises branch July 21, 2025 15:39
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