Skip to content

Commit d1fc68d

Browse files
committed
chore(cmd): switch from cmp.Equal to reflect.DeepEqual
Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
1 parent 586fc7e commit d1fc68d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/firmware-action/recipes/recipes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111
"log/slog"
1212
"os"
1313
"path/filepath"
14+
"reflect"
1415
"slices"
1516
"sync"
1617

1718
"dagger.io/dagger"
1819
"github.com/9elements/firmware-action/cmd/firmware-action/filesystem"
19-
"github.com/google/go-cmp/cmp"
2020
"github.com/heimdalr/dag"
2121
)
2222

@@ -228,7 +228,7 @@ func Execute(ctx context.Context, target string, config *Config) error {
228228
)
229229
} else {
230230
oldModules := oldConfig.AllModules()
231-
changedConfig = !cmp.Equal(modules[target], oldModules[target])
231+
changedConfig = !reflect.DeepEqual(modules[target], oldModules[target])
232232
}
233233
}
234234
slog.Debug("Changes were detected",

0 commit comments

Comments
 (0)