[scaffolding-chef-inspec] Install action overwrites user default.toml
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 35
- Forks
- 35
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 8
Description
Problem Statement
There appears to be a bug in which if a user creates a default.toml and adds it to the /src directory when packaging Effortless Audit, upon installation of the package the default.toml is overwritten with a canned version.
This is the code that seems to be the offender here:
https://github.com/chef/effortless/blob/master/scaffolding-chef-inspec/lib/scaffolding.ps1#L172
I haven't verified in Linux if it's the same, but I have tested in Windows 2k12r2/2k16.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at scaffolding-chef-inspec/lib/scaffolding.ps1 around line 172 and reproduce installation with a user-provided default.toml in the packaged src directory. Verify the installation behavior on Windows and, if possible, Linux; done means the user's default.toml is not overwritten by the canned version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100