We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c874f16 commit 1afe9bbCopy full SHA for 1afe9bb
internal/util/target_match.go
@@ -53,6 +53,10 @@ func NewTargetMatcher() *TargetMatcher {
53
}
54
55
func (m *TargetMatcher) ResetMatches() {
56
+ if m == nil {
57
+ return
58
+ }
59
+
60
for _, t := range m.matchers {
61
t.matched = 0
62
pkg/actions/deploy.go
@@ -77,6 +77,14 @@ type DeployOptions struct {
77
78
79
func NewDeploy(log logger.Logger, cfg *config.Project, opts *DeployOptions) *Deploy {
80
+ // Ensure Targets and Skips are never nil
81
+ if opts.Targets == nil {
82
+ opts.Targets = util.NewTargetMatcher()
83
84
+ if opts.Skips == nil {
85
+ opts.Skips = util.NewTargetMatcher()
86
87
88
return &Deploy{
89
log: log,
90
cfg: cfg,
0 commit comments