Skip to content

Commit 26a5907

Browse files
authored
Make Vcpkg Experimental detector (#216)
* Make Vcpkg Experimental detector
1 parent 8e8c3a4 commit 26a5907

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Microsoft.ComponentDetection.Contracts/IComponentDetector.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Collections.Generic;
1+
using System.Collections.Generic;
22
using System.Threading.Tasks;
33
using Microsoft.ComponentDetection.Contracts.TypedComponent;
44

@@ -53,7 +53,7 @@ public interface IDefaultOffComponentDetector : IComponentDetector
5353
/// <summary>
5454
/// Component detectors implementing this interface are in an experimental state.
5555
/// The detector processing service guarantees that:
56-
/// They should NOT return their components as part of the scan result or be allowed to run too long (e.g. 2 min or less).
56+
/// They should NOT return their components as part of the scan result or be allowed to run too long (e.g. 4 min or less).
5757
/// They SHOULD submit telemetry about how they ran.
5858
/// If opted in, they should behave like a normal detector.
5959
/// </summary>

src/Microsoft.ComponentDetection.Detectors/vcpkg/VcpkgComponentDetector.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Composition;
44
using System.IO;
@@ -13,7 +13,7 @@
1313
namespace Microsoft.ComponentDetection.Detectors.Vcpkg
1414
{
1515
[Export(typeof(IComponentDetector))]
16-
public class VcpkgComponentDetector : FileComponentDetector, IDefaultOffComponentDetector
16+
public class VcpkgComponentDetector : FileComponentDetector, IExperimentalDetector
1717
{
1818
[Import]
1919
public ICommandLineInvocationService CommandLineInvocationService { get; set; }
@@ -29,7 +29,7 @@ public class VcpkgComponentDetector : FileComponentDetector, IDefaultOffComponen
2929

3030
public override IEnumerable<ComponentType> SupportedComponentTypes { get; } = new[] { ComponentType.Vcpkg };
3131

32-
public override int Version => 1;
32+
public override int Version => 2;
3333

3434
private HashSet<string> projectRoots = new HashSet<string>();
3535

0 commit comments

Comments
 (0)