Skip to content

builder-next: metadata commands do not have created time in history #39456

@btashton

Description

@btashton

Can we pull in this buildkit fix moby/buildkit@db3db10

A created timestamp use to always be generated for each history entry. Now it is missing for metadata commands. This breaks some registries.

Buildkit

  "history": [
    {
      "created": "2019-07-02T19:41:12.0852458Z",
      "created_by": "COPY /go/hello /hello # buildkit",
      "comment": "buildkit.dockerfile.v0"
    },
    {
      "created_by": "CMD [\"/hello\"]",
      "comment": "buildkit.dockerfile.v0",
      "empty_layer": true
    }
  ],

Current Builder

  "history": [
    {
      "created": "2019-07-02T19:49:29.655035205Z",
      "created_by": "/bin/sh -c #(nop) COPY file:13f7011b9ebfb5bb7db052dfb0f3d4e6bf3daa66beaa536179bec662ff5ff436 in /hello "
    },
    {
      "created": "2019-07-02T19:49:29.978464217Z",
      "created_by": "/bin/sh -c #(nop)  CMD [\"/hello\"]",
      "empty_layer": true
    }
  ],

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions