microsoft / microsoft/azure-linux-dev-tools

overlays: file-add should allow replacing existing files (or add a file-replace)

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: overlays enhancement usability
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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.