microsoft / sarif-pattern-matcher

Quality domain agnostic regular expression pattern matcher that persists results to SARIF
MIT License
39 stars 18 forks source link

[Regression] Sarif.PatternMatcher v4.3.8 fails to install due to Test.Utilities.Sarif pkg dep #747

Closed rwoll closed 1 year ago

rwoll commented 1 year ago

The installation docs worked with 1.10.0 of Sarif.PatternMatcher, but fail with 4.3.8 on a fresh, minimal project.

Broken

$ dotnet add package Sarif.PatternMatcher --version 4.3.8
…
Unable to find package Test.Utilities.Sarif. No packages exist with this id in source(s): nuget.org

Working

$ dotnet add package Sarif.PatternMatcher --version 1.10.0

Full Minimal Repro

$ mkdir repro
$ cd repro/
$ dotnet new console
The template "Console App" was created successfully.
…
Restore succeeded.
$ cat repro.csproj 
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net7.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

</Project>
$ dotnet add package Sarif.PatternMatcher --version 4.3.8
  Determining projects to restore...
…
info : Installed Sarif.PatternMatcher.Sdk 4.3.8 from https://api.nuget.org/v3/index.json with content hash vsd+T5FVKDTQ5i/zvvVqtQv2l2sswD2M5Lb2ja9NqA96jUFjyLVy9cqyle7959xjBfCWJUB4TqUZUjdqGWW38g==.
info : Installed Strings.Interop 4.3.8 from https://api.nuget.org/v3/index.json with content hash IX118QyGUgP4OmpvWeKJkuvEVUmeULJyVWpTsTwFjMxNJqlxPDc00YrzgqNfqxLZuoyKk8UgWNI4IljJK+g3IA==.
info : Installed Sarif.Driver 4.1.0 from https://api.nuget.org/v3/index.json with content hash 2nt8vw2FC45S4FeEU21X6hLD2+5FsRdWH/k19LihSxaCE4aMWcpV5Z7fVYy2PM7IWvVDWjOfDxL6i6L049stug==.
info : Installed Sarif.PatternMatcher 4.3.8 from https://api.nuget.org/v3/index.json with content hash KrGvathtacuN6D8OEBDVRz9UlYK6fFMNGgnW8gQQEsp0HAflGPetEgP2dljBbhNR7r7acwsIle6b5u5+y6yzXA==.
info : Installed CommandLineParser 2.9.1 from https://api.nuget.org/v3/index.json with content hash OE0sl1/sQ37bjVsPKKtwQlWDgqaxWgtme3xZz7JssWUzg5JpMIyHgCTY9MVMxOg48fJ1AgGT3tgdH5m/kQ5xhA==.
info : Installed RE2.Managed 4.3.8 from https://api.nuget.org/v3/index.json with content hash VBdW+BJFJEtJbRqPeCKU26UB/b5TITMYyik2Ic7nM26EZujWwJycCo3ygfNnVx+Hnuwjh1iicRydvPcg0YgblQ==.
error: NU1101: Unable to find package Test.Utilities.Sarif. No packages exist with this id in source(s): nuget.org
error: Package 'Sarif.PatternMatcher' is incompatible with 'all' frameworks in project '/some/path/code/microsoft/repro/repro.csproj'.