Skip to content

image-info.json's commitUrl is incorrect when manifest is not in repo root #2165

Open

Description

@lbussell

Example: https://github.com/dotnet/versions/blob/ff091bf000d8cbdd8aa8822b2122f536b6f9a562/build-info/docker/image-info.dotnet-docker-tools-main-imagebuilder.json#L29

https://github.com/dotnet/dotnet-docker/blob/30a3bfe0a3bbe1baae8ed261081f97147fc6c275/Dockerfile.linux is not a valid location. It should be https://github.com/dotnet/docker-tools/blob/30a3bfe0a3bbe1baae8ed261081f97147fc6c275/src/Dockerfile.linux instead.

(Unrelated to this issue, it looks like this repo has the git repo URL set incorrectly as well)

The calculation for commitUrl computes the path relative to the manifest file, but the git URL calculation assumes that it is relative to the root of the repo.

Suggested fix: Update Dockerfile path calculation to be relative to the root of the repo.

Activity

  1. added theissue type on Jul 6, 2026
  2. moved this from Backlog to In Progress in .NET Dockeron Jul 6, 2026
  3. self-assigned this
    on Jul 6, 2026
  4. moved this from In Progress to Current Release in .NET Dockeron Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

  • Status
    Current Release

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions