Skip to content

Remove deprecated unique function #1311

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
Apr 24, 2023
Merged

Conversation

MartyEwings
Copy link
Contributor

unique function has been deprecated in favour of core version since puppet 5

@puppet-community-rangefinder
Copy link

unique is a function

Breaking changes to this file MAY impact these 93 modules (near match):

This module is declared in 318 of 580 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

@MartyEwings MartyEwings changed the title remove deprecated unique function Remove deprecated unique function Apr 24, 2023
DOC
) do |arguments|
if Puppet::Util::Package.versioncmp(Puppet.version, '5.0.0') >= 0
function_deprecation([:unique, 'This method is deprecated, please use the core puppet unique function. There is further documentation for the function in the release notes of Puppet 5.0.'])
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is intriguing. Was this ever reachable?? ie If you were on Puppet 5 wouldn't the built in function automatically get used instead and was there anyway round this?

Copy link
Contributor

@LukasAud LukasAud left a comment

Choose a reason for hiding this comment

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

LGTM. Will wait for a second review before merging tho.

@chelnak chelnak merged commit 3e16452 into puppetlabs:main Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants