Compose pipeline steps using native identities
This commit is contained in:
16
internal/core/config/document_normalizer.go
Normal file
16
internal/core/config/document_normalizer.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package config
|
||||
|
||||
import configkit "go.maximumdirect.net/configkit"
|
||||
|
||||
// A step whose identity is normalized no longer corresponds to its original
|
||||
// record. Its ancestor record covers its edits instead of invalid leaf records.
|
||||
type documentNormalizer struct {
|
||||
*configkit.Resolution
|
||||
covered bool
|
||||
}
|
||||
|
||||
func (n documentNormalizer) RecordNormalization(path configkit.Path, reason string, dependencies ...configkit.Path) {
|
||||
if !n.covered {
|
||||
n.Resolution.RecordNormalization(path, reason, dependencies...)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user