(inp *Input, env Env, depth int)
| 813 | } |
| 814 | |
| 815 | func applyEnvWithDepth(inp *Input, env Env, depth int) { |
| 816 | if inp == nil { |
| 817 | return |
| 818 | } |
| 819 | inp.Env = env |
| 820 | inp.Env.Depth = depth |
| 821 | if inp.Image == nil || inp.Image.Provenance == nil || len(inp.Image.Provenance.Materials) == 0 { |
| 822 | return |
| 823 | } |
| 824 | for i := range inp.Image.Provenance.Materials { |
| 825 | applyEnvWithDepth(&inp.Image.Provenance.Materials[i], env, depth+1) |
| 826 | } |
| 827 | } |
| 828 | |
| 829 | func AddUnknowns(req *gwpb.ResolveSourceMetaRequest, unk []string) error { |
| 830 | return AddUnknownsWithLogger(nil, req, unk) |
no outgoing calls
no test coverage detected
searching dependent graphs…