equal
deleted
inserted
replaced
28 ) |
28 ) |
29 |
29 |
30 // conflictPolicy configures the policy for handling registration conflicts. |
30 // conflictPolicy configures the policy for handling registration conflicts. |
31 // |
31 // |
32 // It can be over-written at compile time with a linker-initialized variable: |
32 // It can be over-written at compile time with a linker-initialized variable: |
|
33 // |
33 // go build -ldflags "-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn" |
34 // go build -ldflags "-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn" |
34 // |
35 // |
35 // It can be over-written at program execution with an environment variable: |
36 // It can be over-written at program execution with an environment variable: |
|
37 // |
36 // GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn ./main |
38 // GOLANG_PROTOBUF_REGISTRATION_CONFLICT=warn ./main |
37 // |
39 // |
38 // Neither of the above are covered by the compatibility promise and |
40 // Neither of the above are covered by the compatibility promise and |
39 // may be removed in a future release of this module. |
41 // may be removed in a future release of this module. |
40 var conflictPolicy = "panic" // "panic" | "warn" | "ignore" |
42 var conflictPolicy = "panic" // "panic" | "warn" | "ignore" |