We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69bf7e0 commit fcaea74Copy full SHA for fcaea74
pkg/iac/rego/load.go
@@ -302,14 +302,17 @@ func (s *Scanner) filterModules(retriever *MetadataRetriever) error {
302
}
303
304
if len(meta.InputOptions.Selectors) == 0 {
305
- s.logger.Warn(
306
- "Module has no input selectors - it will be loaded for all inputs!",
307
- log.FilePath(module.Package.Location.File),
308
- log.String("module", name),
309
- )
+ if !meta.Library {
+ s.logger.Warn(
+ "Module has no input selectors - it will be loaded for all inputs!",
+ log.FilePath(module.Package.Location.File),
+ log.String("module", name),
310
+ )
311
+ }
312
filtered[name] = module
313
continue
314
315
+
316
for _, selector := range meta.InputOptions.Selectors {
317
if selector.Type == string(s.sourceType) {
318
0 commit comments