@@ -91,7 +91,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
9191
9292 flowCfg , err := ostest .ParseFlowConfig (cfg )
9393 require .NoError (t , err )
94- useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
94+ useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
9595 require .NoError (t , err )
9696
9797 assert .True (t , useLegacy )
@@ -107,7 +107,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
107107
108108 flowCfg , err := ostest .ParseFlowConfig (testCfg )
109109 require .NoError (t , err )
110- _ , err = ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
110+ _ , err = ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
111111
112112 assert .Error (t , err )
113113 })
@@ -131,7 +131,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
131131
132132 flowCfg , err := ostest .ParseFlowConfig (testCfg )
133133 require .NoError (t , err )
134- useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
134+ useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
135135 require .NoError (t , err )
136136
137137 assert .True (t , useLegacy )
@@ -148,7 +148,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
148148
149149 flowCfg , err := ostest .ParseFlowConfig (testCfg )
150150 require .NoError (t , err )
151- _ , err = ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
151+ _ , err = ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
152152
153153 assert .Error (t , err )
154154 })
@@ -169,7 +169,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
169169
170170 flowCfg , err := ostest .ParseFlowConfig (cfg )
171171 require .NoError (t , err )
172- _ , err = ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
172+ _ , err = ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
173173 require .Error (t , err )
174174 var catalogErr snyk_errors.Error
175175 require .ErrorAs (t , err , & catalogErr )
@@ -191,7 +191,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
191191
192192 flowCfg , err := ostest .ParseFlowConfig (cfg )
193193 require .NoError (t , err )
194- _ , err = ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
194+ _ , err = ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
195195 require .Error (t , err )
196196 var catalogErr snyk_errors.Error
197197 require .ErrorAs (t , err , & catalogErr )
@@ -209,7 +209,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
209209
210210 flowCfg , err := ostest .ParseFlowConfig (cfg )
211211 require .NoError (t , err )
212- useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
212+ useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
213213 require .NoError (t , err )
214214
215215 assert .True (t , useLegacy )
@@ -227,7 +227,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
227227
228228 flowCfg , err := ostest .ParseFlowConfig (cfg )
229229 require .NoError (t , err )
230- useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
230+ useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
231231 require .NoError (t , err )
232232
233233 assert .True (t , useLegacy )
@@ -246,7 +246,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
246246
247247 flowCfg , err := ostest .ParseFlowConfig (cfg )
248248 require .NoError (t , err )
249- _ , err = ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {"." })
249+ _ , err = ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {"." })
250250 require .Error (t , err )
251251
252252 var catalogErr snyk_errors.Error
@@ -271,7 +271,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
271271
272272 flowCfg , err := ostest .ParseFlowConfig (cfg )
273273 require .NoError (t , err )
274- useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {tempDir })
274+ useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {tempDir })
275275 require .NoError (t , err )
276276
277277 assert .False (t , useLegacy , "should use new flow when experimental flag and UV support are enabled and uv.lock exists" )
@@ -294,7 +294,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
294294
295295 flowCfg , err := ostest .ParseFlowConfig (cfg )
296296 require .NoError (t , err )
297- useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {tempDir })
297+ useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {tempDir })
298298 require .NoError (t , err )
299299
300300 assert .True (t , useLegacy , "should use legacy flow when UV support is enabled but uv.lock is missing" )
@@ -317,7 +317,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
317317
318318 flowCfg , err := ostest .ParseFlowConfig (cfg )
319319 require .NoError (t , err )
320- useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {tempDir })
320+ useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {tempDir })
321321 require .NoError (t , err )
322322
323323 assert .True (t , useLegacy , "should use legacy flow when experimental flag is not set regardless of UV support" )
@@ -338,7 +338,7 @@ func Test_ShouldUseLegacyFlow(t *testing.T) {
338338
339339 flowCfg , err := ostest .ParseFlowConfig (cfg )
340340 require .NoError (t , err )
341- useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , false , flowCfg , []string {tempDir })
341+ useLegacy , err := ostest .ShouldUseLegacyFlow (ctx , flowCfg , []string {tempDir })
342342 require .NoError (t , err )
343343
344344 assert .True (t , useLegacy , "should use legacy flow when UV support is disabled regardless of uv.lock presence" )
0 commit comments