diff --git a/docs/content/local-file.md b/docs/content/local-file.md index 33bbfb0ded..d23c6d4f97 100644 --- a/docs/content/local-file.md +++ b/docs/content/local-file.md @@ -47,7 +47,8 @@ Now when running `paket restore`, we get the following: [lang=bash] $ .paket\paket.exe restore Paket version 3.0.0.0 - paket.local override: nuget Argu -> file:///c:\github\Argu feature_branch build:"build.cmd NuGet", Packages: /bin/ + paket.local override: nuget Argu group main -> + file:///c:\github\Argu feature_branch build:"build.cmd NuGet", Packages: /bin/ Setting C:\github\Paket\paket-files\localfilesystem\Argu to b14ea1a00431335ca3b60d49573b3831cd2deeb4 Running "C:\github\Paket\paket-files\localfilesystem\Argu\build.cmd NuGet" 11 seconds - ready. @@ -70,9 +71,6 @@ Each line in `paket.local` means one override - you can have multiple overrides [lang=paket] nuget Argu -> git file:///c:\github\Argu feature_branch build:"build.cmd NuGet", Packages: /bin/ nuget Fake -> source c:\github\FAKE\bin - - -> Note: [groups](groups.html) are not supported yet. Override applies only to "Main" group. ### Git override @@ -92,6 +90,17 @@ The Format of the source is the same as in [path sources](nuget-dependencies.htm > Note: In case of source override, `paket restore` assumes the NuGet package **already exists** in pointed directory - no build is going to be triggered. +### Groups + + [lang=paket] + // Argu is in Main group + nuget Argu -> git file:///c:\github\Argu feature_branch build:"build.cmd NuGet", Packages: /bin/ + // Fake is in Build group + nuget Fake group Build -> source c:\github\FAKE\bin + +The [dependency group](groups.html) can be specified with ``group `` after ``nuget ``. +If not specified, the default group ("Main") is used. + ### Comments All lines starting with with `//` or `#` are considered comments. diff --git a/src/Paket.Core/LocalFile.fs b/src/Paket.Core/LocalFile.fs index 5507f93fc5..b0a574e59b 100644 --- a/src/Paket.Core/LocalFile.fs +++ b/src/Paket.Core/LocalFile.fs @@ -76,10 +76,10 @@ module LocalFile = let private warning x = match x with - | LocalSourceOverride (p,s) -> - sprintf "nuget %s -> %s" (p.ToString()) (s.ToString()) - | LocalGitOverride (p,s) -> - sprintf "nuget %s -> %s" (p.ToString()) s + | LocalSourceOverride (OverriddenPackage(p,g),s) -> + sprintf "nuget %s group %s -> %s" (p.ToString()) (g.ToString()) (s.ToString()) + | LocalGitOverride (OverriddenPackage(p,g),s) -> + sprintf "nuget %s group %s -> %s" (p.ToString()) (g.ToString()) s |> (+) "paket.local override: " |> Logging.traceWarn x