Skip to content

Commit 5958c0e

Browse files
committed
wip: debug windows
1 parent e01da53 commit 5958c0e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pkg/commands/run.go

+4
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ func (c *runCommand) persistentPreRunE(cmd *cobra.Command, args []string) error
153153

154154
c.log.Infof("%s", c.buildInfo.String())
155155

156+
if c.cfg.InternalTest {
157+
fsutils.UseWdCache(false)
158+
}
159+
156160
loader := config.NewLoader(c.log.Child(logutils.DebugKeyConfigReader), c.viper, cmd.Flags(), c.opts.LoaderOptions, c.cfg, args)
157161

158162
err := loader.Load(config.LoadOptions{CheckDeprecation: true, Validation: true})

test/run_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ func TestAutogeneratedNoIssues(t *testing.T) {
2727
WithTargetPath(testdataDir, "autogenerated").
2828
WithBinPath(binPath).
2929
Runner().
30-
Install().
3130
Run().
3231
ExpectNoIssues()
3332
}
@@ -328,14 +327,14 @@ func TestUnsafeOk(t *testing.T) {
328327

329328
cfg := `
330329
linters:
330+
enable-all: true
331331
exclusions:
332332
presets:
333333
- commonFalsePositives
334334
`
335335

336336
testshared.NewRunnerBuilder(t).
337337
WithConfig(cfg).
338-
WithArgs("--enable-all").
339338
WithTargetPath(testdataDir, "unsafe").
340339
WithBinPath(binPath).
341340
Runner().

0 commit comments

Comments
 (0)