dotnet / dotnet/dotnet-docker

Add unit test that checks for unused Dockerfiles

Open
#6,299 1 comment 0 reactions 0 assignees View on GitHub
area-infrastructure up-for-grabs
Dominant language
Dockerfile
Stars
4.9k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
26

Description

### Describe the Problem

Sometimes, we accidentally leave unused Dockerfiles in the `src/` folder that are no longer built or published.

### Describe the Solution

There should be a test, in [GeneratedArtifactTests.cs](https://github.com/dotnet/dotnet-docker/blob/main/tests/Microsoft.DotNet.Docker.Tests/GeneratedArtifactTests.cs), which fails if there are any Dockerfiles in `src/` that are not referenced by `manifest.json`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.