From ba22a59647e8f1da35103a156c7b645b35efb523 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Fri, 7 Nov 2025 02:05:00 +0100 Subject: [PATCH] fix: use file depending on build configuration to invalidate cache --- internal/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cache/cache.go b/internal/cache/cache.go index 627993d2ecb9..138a36148a8d 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -166,7 +166,7 @@ func (c *Cache) computePkgHash(pkg *packages.Package) (hashResults, error) { fmt.Fprintf(key, "pkgpath %s\n", pkg.PkgPath) - for _, f := range pkg.CompiledGoFiles { + for _, f := range slices.Concat(pkg.CompiledGoFiles, pkg.IgnoredFiles) { h, fErr := c.fileHash(f) if fErr != nil { return nil, fmt.Errorf("failed to calculate file %s hash: %w", f, fErr)