(system dist.System)
| 1179 | } |
| 1180 | |
| 1181 | func 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 | |
| 1190 | func (b *Builder) stackLayer(dest string) (string, error) { |
| 1191 | buf := &bytes.Buffer{} |