mirror of
https://github.com/docker/compose.git
synced 2025-07-06 13:24:25 +02:00
Merge pull request #1579 from aiordache/build_fields
Remove service.Build and service.PullPolicy from config hash
This commit is contained in:
commit
92920a03e0
@ -26,6 +26,9 @@ import (
|
|||||||
// ServiceHash compute configuration has for a service
|
// ServiceHash compute configuration has for a service
|
||||||
// TODO move this to compose-go
|
// TODO move this to compose-go
|
||||||
func ServiceHash(o types.ServiceConfig) (string, error) {
|
func ServiceHash(o types.ServiceConfig) (string, error) {
|
||||||
|
// remove the Build config when generating the service hash
|
||||||
|
o.Build = nil
|
||||||
|
o.PullPolicy = ""
|
||||||
bytes, err := json.Marshal(o)
|
bytes, err := json.Marshal(o)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user