Skip to content

Commit 6fd355a

Browse files
committed
Discovery lints
1 parent 9c48ac1 commit 6fd355a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

internal/discovery/discovery.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ type Discovery struct {
8989
// includeDirs is a list of directory patterns to include in discovery (for strict include mode).
9090
includeDirs []string
9191

92+
// parserOptions are custom HCL parser options to use when parsing during discovery
93+
parserOptions []hclparse.Option
94+
9295
// maxDependencyDepth is the maximum depth of the dependency tree to discover.
9396
maxDependencyDepth int
9497

@@ -118,9 +121,6 @@ type Discovery struct {
118121

119122
// excludeByDefault determines whether to exclude configurations by default (triggered by include flags).
120123
excludeByDefault bool
121-
122-
// parserOptions are custom HCL parser options to use when parsing during discovery
123-
parserOptions []hclparse.Option
124124
}
125125

126126
// DiscoveryOption is a function that modifies a Discovery.
@@ -692,11 +692,11 @@ type DependencyDiscovery struct {
692692
discoveryContext *DiscoveryContext
693693
cfgs DiscoveredConfigs
694694
includeDirs []string
695+
parserOptions []hclparse.Option
695696
depthRemaining int
696697
discoverExternal bool
697698
suppressParseErrors bool
698699
strictInclude bool
699-
parserOptions []hclparse.Option
700700
}
701701

702702
// DependencyDiscoveryOption is a function that modifies a DependencyDiscovery.

test/integration_report_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,11 @@ func TestTerragruntReportExperimentSaveToFileWithFormat(t *testing.T) {
386386
func TestTerragruntReportExperimentWithUnitTiming(t *testing.T) {
387387
t.Parallel()
388388

389+
if os.Getenv("TG_EXPERIMENT") == "runner-pool" {
390+
t.Skip("Skipping test in runner-pool experiment")
391+
return
392+
}
393+
389394
// Set up test environment
390395
helpers.CleanupTerraformFolder(t, testFixtureReportPath)
391396
tmpEnvPath := helpers.CopyEnvironment(t, testFixtureReportPath)

0 commit comments

Comments
 (0)