55 "strings"
66
77 "github.com/Masterminds/semver"
8- "github.com/buildpacks/lifecycle"
8+ "github.com/buildpacks/lifecycle/buildpack "
99 "github.com/buildpacks/lifecycle/launch"
10+ "github.com/buildpacks/lifecycle/platform"
1011 "github.com/pkg/errors"
1112
1213 "github.com/buildpacks/pack/config"
@@ -22,7 +23,7 @@ type ImageInfo struct {
2223
2324 // List of buildpacks that passed detection, ran their build
2425 // phases and made a contribution to this image.
25- Buildpacks []lifecycle .GroupBuildpack
26+ Buildpacks []buildpack .GroupBuildpack
2627
2728 // Base includes two references to the run image,
2829 // - the Run Image ID,
@@ -38,15 +39,15 @@ type ImageInfo struct {
3839 // the first 1 to k layers all belong to the run image,
3940 // the last k+1 to n layers are added by buildpacks.
4041 // the sum of all of these is our app image.
41- Base lifecycle .RunImageMetadata
42+ Base platform .RunImageMetadata
4243
4344 // BOM or Bill of materials, contains dependency and
4445 // version information provided by each buildpack.
45- BOM []lifecycle .BOMEntry
46+ BOM []buildpack .BOMEntry
4647
4748 // Stack includes the run image name, and a list of image mirrors,
4849 // where the run image is hosted.
49- Stack lifecycle .StackMetadata
50+ Stack platform .StackMetadata
5051
5152 // Processes lists all processes contributed by buildpacks.
5253 Processes ProcessDetails
@@ -64,8 +65,8 @@ type ProcessDetails struct {
6465
6566// Deserialize just the subset of fields we need to avoid breaking changes
6667type layersMetadata struct {
67- RunImage lifecycle .RunImageMetadata `json:"runImage" toml:"run-image"`
68- Stack lifecycle .StackMetadata `json:"stack" toml:"stack"`
68+ RunImage platform .RunImageMetadata `json:"runImage" toml:"run-image"`
69+ Stack platform .StackMetadata `json:"stack" toml:"stack"`
6970}
7071
7172const (
@@ -94,12 +95,12 @@ func (c *Client) InspectImage(name string, daemon bool) (*ImageInfo, error) {
9495 }
9596
9697 var layersMd layersMetadata
97- if _ , err := dist .GetLabel (img , lifecycle .LayerMetadataLabel , & layersMd ); err != nil {
98+ if _ , err := dist .GetLabel (img , platform .LayerMetadataLabel , & layersMd ); err != nil {
9899 return nil , err
99100 }
100101
101- var buildMD lifecycle .BuildMetadata
102- if _ , err := dist .GetLabel (img , lifecycle .BuildMetadataLabel , & buildMD ); err != nil {
102+ var buildMD platform .BuildMetadata
103+ if _ , err := dist .GetLabel (img , platform .BuildMetadataLabel , & buildMD ); err != nil {
103104 return nil , err
104105 }
105106
@@ -110,7 +111,7 @@ func (c *Client) InspectImage(name string, daemon bool) (*ImageInfo, error) {
110111 layersMd .RunImage .Reference = ""
111112 }
112113
113- stackID , err := img .Label (lifecycle .StackIDLabel )
114+ stackID , err := img .Label (platform .StackIDLabel )
114115 if err != nil {
115116 return nil , err
116117 }
0 commit comments