Navigation Menu

Skip to content

Commit

Permalink
fill in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
theimowski committed Jul 4, 2016
1 parent df68e77 commit c64ca6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
17 changes: 13 additions & 4 deletions docs/content/local-file.md
Expand Up @@ -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.
Expand All @@ -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

Expand All @@ -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 <GroupName>`` after ``nuget <PackageName>``.
If not specified, the default group ("Main") is used.

### Comments

All lines starting with with `//` or `#` are considered comments.
Expand Down
8 changes: 4 additions & 4 deletions src/Paket.Core/LocalFile.fs
Expand Up @@ -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
Expand Down

0 comments on commit c64ca6a

Please sign in to comment.