Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 92920a0

Browse files
authored
Merge pull request #1579 from aiordache/build_fields
Remove service.Build and service.PullPolicy from config hash
2 parents bce6129 + 44d2b29 commit 92920a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/hash.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ import (
2626
// ServiceHash compute configuration has for a service
2727
// TODO move this to compose-go
2828
func ServiceHash(o types.ServiceConfig) (string, error) {
29+
// remove the Build config when generating the service hash
30+
o.Build = nil
31+
o.PullPolicy = ""
2932
bytes, err := json.Marshal(o)
3033
if err != nil {
3134
return "", err

0 commit comments

Comments
 (0)