dotnet / dotnet/docker-tools

Adopt IFileSystem abstraction across ImageBuilder

Open
#1,973 0 comments 0 reactions 1 assignee Claimed by @lbussell View on GitHub
area-infrastructure
Dominant language
C#
Stars
181
Forks
67
Avg merge
2d 15h
Merged PRs (30d)
10

Description

PR #1957 introduces an `IFileSystem` abstraction for testability of the signing services. The rest of ImageBuilder still uses `System.IO.File` and `System.IO.Directory` directly.

Migrate all direct `System.IO` filesystem usage in `src/ImageBuilder/` to use `IFileSystem`, extending the interface as needed. This enables unit testing without disk I/O and establishes a single consistent pattern.

Context: https://github.com/dotnet/docker-tools/pull/1957#discussion_r1962217555

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.