Skip to content

feat!: remove ValidateSelectorsInEnvironment method#61

Merged
jkongie merged 1 commit into
mainfrom
remove-selector-validator-method
May 20, 2026
Merged

feat!: remove ValidateSelectorsInEnvironment method#61
jkongie merged 1 commit into
mainfrom
remove-selector-validator-method

Conversation

@jkongie
Copy link
Copy Markdown
Collaborator

@jkongie jkongie commented May 20, 2026

BREAKING CHANGE: Remove ValidateSelectorsInEnvironment method from pkg/cldfutil/selectors.go.

This method is only used in internal legacy changesets. This removes the method from the public API, and is replaced by local validation functions in the relevant changesets packages.

[BREAKING CHANGE] Remove `ValidateSelectorsInEnvironment` method from
`pkg/cldfutil/selectors.go`.

This method is supposedly only used internally and in legacy changesets.
This removes the method from the public API, and is replaced by local
validation functions in the changesets.
@jkongie jkongie requested a review from a team as a code owner May 20, 2026 12:02
Copilot AI review requested due to automatic review settings May 20, 2026 12:02
@jkongie jkongie changed the title feat: remove ValidateSelectorsInEnvironment method feat!: remove ValidateSelectorsInEnvironment method May 20, 2026
@github-actions
Copy link
Copy Markdown

👋 jkongie, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the exported ValidateSelectorsInEnvironment helper from pkg/cldfutil (public API) and replaces its usage with private, file-local validation functions within the changesets that need it.

Changes:

  • Deleted pkg/cldfutil/validators-style exported selector validation (ValidateSelectorsInEnvironment) from pkg/cldfutil.
  • Updated LINK token changesets to call a local validateSelectorsInEnvironment helper instead of the removed exported function.
  • Updated legacy MCMS config changeset validation to use a local validateSelectorsInEnvironment helper and removed the now-unneeded cldfutil import there.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pkg/cldfutil/selectors.go Removes the exported selector validation helper from the cldfutil public API.
link/changesets/deploy_link_token.go Replaces cldfutil.ValidateSelectorsInEnvironment usage with a local validation function.
legacy/mcms/changesets/set_config_mcms.go Replaces cldfutil.ValidateSelectorsInEnvironment usage with a local validation function and cleans up imports.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cl-sonarqube-production
Copy link
Copy Markdown

@jkongie jkongie merged commit 72f431f into main May 20, 2026
22 checks passed
@jkongie jkongie deleted the remove-selector-validator-method branch May 20, 2026 12:29
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.

3 participants