operator-sdk
                                
                                 operator-sdk copied to clipboard
                                
                                    operator-sdk copied to clipboard
                            
                            
                            
                        Docker builder time exploses
Bug Report
What did you do?
Upgraded to 1.39.1 of operator-sdk (go).
What did you expect to see?
Same building time for docker.
What did you see instead? Under which circumstances?
Increase of time from 15mins to 50mins of build.
Environment
Operator type:
/language go
Kubernetes cluster type:
$ operator-sdk version
1.39.1
$ go version (if language is Go)
1.24.1
Possible Solution
Rollback change introduced in 1.34.0
Additional context
I made the change introduced in 1.34.0 and the building time of the docker image increased from 15mins before to 50mins after.
The pain point is on this line: RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -o manager cmd/main.go