Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Deprecation of contain_duplicates in inspec

Open
#45 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby

Research direction

Start with controls/os_spec.rb at the referenced line and read related issue 738 to understand the InSpec deprecation. Update the deprecated contain_duplicates usage as required by that guidance, then run the profile checks and confirm the deprecation warning no longer appears.

Written by the indexing model from the issue text.

Description

[DEPRECATION] `contain_duplicates` is deprecated and will be removed for InSpec 1.0. See https://github.com/chef/inspec/issues/738 for more details
[DEPRECATION] `contain_duplicates` is deprecated and will be removed for InSpec 1.0. See https://github.com/chef/inspec/issues/738 for more details

Related issue: https://github.com/chef/inspec/issues/738

The related code is in the os_spec.rb

Dominant language
Ruby
Stars
876
Forks
194
Avg merge
9m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dev-sec/linux-baseline

All issues in dev-sec/linux-baseline

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.