build: don't generate local state for subrequests

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2024-10-25 10:49:31 +02:00
parent 746eadd16e
commit 886ae21e93
2 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
func saveLocalState(so *client.SolveOpt, target string, opts Options, node builder.Node, cfg *confutil.Config) error {
var err error
if so.Ref == "" {
if so.Ref == "" || opts.CallFunc != nil {
return nil
}
lp := opts.Inputs.ContextPath