microsoft / microsoft/azure-linux-dev-tools
overlays: file-add should allow replacing existing files (or add a file-replace)
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 18
- Forks
- 27
- Avg merge
- 4d 33m
- Merged PRs (30d)
- 24
Description
A common use case for file-add will be to replace an existing file with one of our own containing different content, so it doesn't make sense to require users to do file-remove then immediately file-add with the same file. if we want to leave file-add failing if the file exists, then there should be a file-replace command added that works like file-add but allows replacing an existing file.
--
Imported on behalf of @ddstreet
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 by locating the overlay command implementation and any tests for file-add and file-remove. Compare the existing failure behavior with the requested replacement workflow, then establish whether file-add should replace files or a separate file-replace command is needed; done means the chosen behavior is implemented and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100