MCPcopy
hub / github.com/docker/compose / dryRunBake

Method dryRunBake

pkg/compose/build_bake.go:578–589  ·  view source on GitHub ↗
(cfg bakeConfig)

Source from the content-addressed store, hash-verified

576}
577
578func (s *composeService) dryRunBake(cfg bakeConfig) map[string]string {
579 bakeResponse := map[string]string{}
580 for name, target := range cfg.Targets {
581 dryRunUUID := fmt.Sprintf("dryRun-%x", sha1.Sum([]byte(name)))
582 s.displayDryRunBuildEvent(name, dryRunUUID, target.Tags[0])
583 bakeResponse[name] = dryRunUUID
584 }
585 for name := range bakeResponse {
586 s.events.On(builtEvent(name))
587 }
588 return bakeResponse
589}
590
591func (s *composeService) displayDryRunBuildEvent(name, dryRunUUID, tag string) {
592 s.events.On(api.Resource{

Callers 1

doBuildBakeMethod · 0.95

Calls 3

builtEventFunction · 0.85
OnMethod · 0.65

Tested by

no test coverage detected