MCPcopy Create free account
hub / github.com/buildpacks/pack / systemFileContents

Function systemFileContents

internal/builder/builder.go:1181–1188  ·  view source on GitHub ↗
(system dist.System)

Source from the content-addressed store, hash-verified

1179}
1180
1181func systemFileContents(system dist.System) (string, error) {
1182 buf := &bytes.Buffer{}
1183 tomlData := systemTOML{System: system}
1184 if err := toml.NewEncoder(buf).Encode(tomlData); err != nil {
1185 return "", errors.Wrapf(err, "failed to marshal system.toml")
1186 }
1187 return buf.String(), nil
1188}
1189
1190func (b *Builder) stackLayer(dest string) (string, error) {
1191 buf := &bytes.Buffer{}

Callers 1

systemLayerMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected