Skip to content

Commit

Permalink
patching Microsoft.Extensions.DependencyModel
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Dec 5, 2024
1 parent d5a719a commit 10e3044
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/double/Edge.js/Edge.js.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.9.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.2" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion test/test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<PackageReference Include="System.Xml.ReaderWriter" Version="4.3.1" />
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.9.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="8.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

</ItemGroup>
Expand Down
10 changes: 7 additions & 3 deletions tools/getVersionAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,19 @@ http.get(url,(res) => {
res.on("end", () => {
try {
let json = JSON.parse(body);

let resolved;;
for (const el of json.sort()) {
let version = el.version.substring(1, el.version.length) ;
if(version.startsWith(process.argv[2])){
if(version.startsWith(`${process.argv[2]}.`)){
fs.writeFileSync('node.txt', version);
console.log(version)
console.log(version);
resolved = version;
return;
}
}
if(!resolved ){
throw `Unable to resolve latest version for Node.js ${process.argv[2]}`
}
} catch (error) {
throw error;
};
Expand Down

0 comments on commit 10e3044

Please sign in to comment.