-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for paket.lock files (#611)
* NuGet parser for paket.lock files Signed-off-by: Robert Liias <[email protected]> * Add tests for paket.lock Signed-off-by: Robert Liias <[email protected]> * Update readme Signed-off-by: Robert Liias <[email protected]> * Isolate paket.lock parsing into its own statement Signed-off-by: Robert Liias <[email protected]> * Update readme, transitive dependencies Signed-off-by: Robert Liias <[email protected]> * Add repotest for Paket projects Signed-off-by: Robert Liias <[email protected]> --------- Signed-off-by: Robert Liias <[email protected]> Co-authored-by: prabhu <[email protected]>
- Loading branch information
Showing
6 changed files
with
106 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
GITHUB | ||
remote: fsharp/FAKE | ||
src/app/FakeLib/Globbing/Globbing.fs (0341a2e614eb2a7f34607cec914eb0ed83ce9add) | ||
remote: fsprojects/FSharp.TypeProviders.SDK | ||
src/AssemblyReader.fs (dc5ac01a1ac288eceb1fd6f12a5d388236f4f8e5) | ||
remote: forki/FsUnit | ||
FsUnit.fs (fa4eb37288d355eb855261be6c0b3945fba68432) | ||
GROUP Build | ||
CONTENT: NONE | ||
RESTRICTION: >= net461 | ||
NUGET | ||
remote: https://api.nuget.org/v3/index.json | ||
0x53A.ReferenceAssemblies.Paket (0.2) | ||
FAKE (4.64.17) | ||
FSharp.Compiler.Service (17.0.1) | ||
System.Collections.Immutable (>= 1.3.1) | ||
System.Reflection.Metadata (>= 1.4.2) | ||
ILRepack (2.0.18) | ||
Microsoft.AspNet.Razor (3.2.4) | ||
Microsoft.NETCore.Platforms (2.0) - restriction: || (&& (>= monotouch) (>= net461)) (&& (< net45) (>= net461) (>= netstandard1.5) (< netstandard1.6)) (&& (< net45) (>= net461) (< netstandard1.5)) (&& (>= net461) (< netstandard1.0)) (&& (>= net461) (< netstandard1.3)) (&& (>= net461) (< netstandard1.4)) (&& (>= net461) (< netstandard1.5) (>= uap10.0)) (&& (>= net461) (< netstandard2.0)) (&& (>= net461) (< portable-net45+win8+wpa81)) (&& (>= net461) (< portable-net451+win81+wpa81)) (&& (>= net461) (>= uap10.1)) | ||
NETStandard.Library (2.0) - restriction: && (>= net461) (< netstandard2.0) | ||
Microsoft.NETCore.Platforms (>= 1.1) | ||
Octokit (0.29) | ||
System.Collections.Immutable (1.4) | ||
NETStandard.Library (>= 1.6.1) - restriction: && (>= net461) (< netstandard2.0) | ||
System.Reflection.Metadata (1.5) | ||
NETStandard.Library (>= 1.6.1) - restriction: && (>= net461) (< netstandard2.0) | ||
System.Collections.Immutable (>= 1.4) | ||
System.ValueTuple (4.4) | ||
remote: https://ci.appveyor.com/nuget/fsharp-formatting | ||
FSharp.Formatting (3.0.0-beta09) | ||
FSharp.Compiler.Service (>= 17.0.1 < 18.0) | ||
Microsoft.AspNet.Razor (>= 3.2.3 < 4.0) | ||
System.ValueTuple (>= 4.4 < 5.0) | ||
GITHUB | ||
remote: fsharp/FAKE | ||
modules/Octokit/Octokit.fsx (13eee5a7b990fa310813f9760094aa3cfebeb33f) | ||
Octokit (>= 0.20) | ||
remote: enricosada/add_icon_to_exe | ||
rh/ResourceHacker.exe (e11eda501acea369ac2950beb34b8888495bf21f) | ||
GROUP FSharpDepManagerExtension | ||
NUGET | ||
remote: https://api.nuget.org/v3/index.json | ||
FSharp.Core (5.0) - redirects: force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ import { | |
parseCsProjData, | ||
parseCsProjAssetsData, | ||
parseCsPkgLockData, | ||
parsePaketLockData, | ||
getNugetMetadata, | ||
parsePom, | ||
getMvnMetadata, | ||
|
@@ -1246,6 +1247,20 @@ test("parse packages.lock.json", async () => { | |
}); | ||
}); | ||
|
||
test("parse paket.lock", async () => { | ||
expect(await parsePaketLockData(null)).toEqual([]); | ||
const dep_list = await parsePaketLockData( | ||
readFileSync("./test/data/paket.lock", { encoding: "utf-8" }) | ||
); | ||
expect(dep_list.length).toEqual(13); | ||
expect(dep_list[0]).toEqual({ | ||
group: "", | ||
name: "0x53A.ReferenceAssemblies.Paket", | ||
version: "0.2", | ||
purl: "pkg:nuget/[email protected]" | ||
}); | ||
}); | ||
|
||
test("parse .net cs proj", async () => { | ||
expect(await parseCsProjData(null)).toEqual([]); | ||
const dep_list = await parseCsProjData( | ||
|