Regenerate local artifacts and invalidate stale receipts
This commit is contained in:
@@ -114,14 +114,6 @@ func Build(ctx context.Context, request Request) (Result, error) {
|
||||
if err := os.MkdirAll(result.OutputDir, 0o755); err != nil {
|
||||
return result, fmt.Errorf("create build output directory %q: %w", result.OutputDir, err)
|
||||
}
|
||||
for _, filename := range filenames {
|
||||
path := filepath.Join(result.OutputDir, filename)
|
||||
if _, err := os.Lstat(path); err == nil {
|
||||
return result, fmt.Errorf("build output %q already exists; preserving caller-owned file", path)
|
||||
} else if !errors.Is(err, os.ErrNotExist) {
|
||||
return result, fmt.Errorf("inspect build output %q: %w", path, err)
|
||||
}
|
||||
}
|
||||
|
||||
compiler, err := runGo(ctx, repositoryDir, nil, "version")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user