RestorePackages() and git-tfs

1 view
Skip to first unread message

Christoph Keller

unread,
Jun 6, 2013, 6:45:07 AM6/6/13
to fshar...@googlegroups.com
Hi,

I'm currently evaluating FAKE for some new builds and I stumbled over an issue with the package restore when used in combination with git-tfs.
When you clone a project from TFS with git-tfs it will create a tfs-folder in your .git directory. This folder contains the content of the tfs repository and is used IMHO for the possibility to sync the changes back to TFS.
However it is not in sync with your working copy until you decide to sync back to TFS.

So the call to RestorePackages (See https://github.com/fsharp/FAKE/blob/develop/src/app/FakeLib/RestorePackageHelper.fs#L73) will also include the packages.config files in the .git subdirectories.
I've tried to exclude this directory but my newbish F# knowledge didn't help me. With this change it looks like it removes all packages.config from the sequence?

let RestorePackages() = 

    let files =  
        !+ "./**/packages.config"  
        -- "./.git/tfs/**/packages.config"
        |> ScanImmediately

    files
        |> Seq.iter (RestorePackage id)

What do I miss? 

Thanks a lot!

Steffen Forkmann

unread,
Jun 6, 2013, 7:04:55 AM6/6/13
to fshar...@googlegroups.com

Hi Christoph,

 

I’ll try to reproduce/fix the problem.

 

At the moment I recommend to put your source files into a subolder (maybe “src”) and scan the subfolder like

 

    let files =  

        !+ "./src/**/packages.config"  

        |> ScanImmediately

 

Cheers,

Steffen

--
Sie haben diese Nachricht erhalten, weil Sie der Google Groups-Gruppe FAKE - F# Make beigetreten sind.
Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von dieser Gruppe zu erhalten, senden Sie eine Email an fsharpMake+...@googlegroups.com.
Weitere Optionen: https://groups.google.com/groups/opt_out
 
 

Christoph Keller

unread,
Jun 11, 2013, 2:07:57 AM6/11/13
to fshar...@googlegroups.com
Hi Steffen,

the sources are already in "./src".
However, with the help of https://github.com/fsharp/FAKE/issues/128 I was able to create a workaround.

Regards,

Christoph
Reply all
Reply to author
Forward
0 new messages