Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2025

Conversation

kayrus
Copy link
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
@github-actions github-actions bot added the edit:gophercloud This PR updates common Gophercloud code label Jul 16, 2025
@coveralls
Copy link

Coverage Status

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

@stephenfin
Copy link
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