Skip to content

Conversation

@tjmoore4
Copy link
Contributor

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change, as applicable?
  • Have you tested your changes on all related environments with successful results, as applicable?
    • Have you added automated tests?

Type of Changes:

  • New feature
  • Bug fix
  • Documentation
  • Testing enhancement
  • Other

What is the new behavior (if this is a feature change)?

  • Breaking change (fix or feature that would cause existing functionality to change)
    This update addresses prealloc lint issues.

Other Information:
Issue: PGO-2844

Comment on lines +407 to 408
configs = append(configs, dataSource.ClusterName, dataSource.RepoName)
configs = append(configs, dataSource.Options...)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
configs = append(configs, dataSource.ClusterName, dataSource.RepoName)
configs = append(configs, dataSource.Options...)
configs = append(configs, dataSource.ClusterName, dataSource.RepoName, dataSource.Options...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the first two elements being appended are strings and the last one is a string slice utilizing a variadic spread , you unfortunately can't do this in a single append call.

Comment on lines +411 to 412
configs = append(configs, cloudDataSource.Stanza, cloudDataSource.Repo.Name)
configs = append(configs, cloudDataSource.Options...)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
configs = append(configs, cloudDataSource.Stanza, cloudDataSource.Repo.Name)
configs = append(configs, cloudDataSource.Options...)
configs = append(configs, cloudDataSource.Stanza, cloudDataSource.Repo.Name, cloudDataSource.Options...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as above.

Copy link
Collaborator

@dsessler7 dsessler7 left a comment

Choose a reason for hiding this comment

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

Couple nitpicks, but looks good to me.

@tjmoore4 tjmoore4 merged commit 11210f8 into CrunchyData:main Jan 23, 2026
21 checks passed
@tjmoore4 tjmoore4 deleted the prealloc-lint-fix branch January 23, 2026 15:16
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