Skip to content

After cloning repository to a brand new directory, build fails #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
indualagarsamy opened this issue Sep 5, 2013 · 1 comment
Closed

Comments

@indualagarsamy
Copy link

Steps:
Do a git clone using SSH to a brand new folder.

git clone [email protected]:Particular/NServiceBus.git

Then build the solution, either in Visual Studio or in powershell using the build script.
Notice these errors:

>------ Rebuild All started: Project: NServiceBus (NServiceBus\NServiceBus), Configuration: Debug Any CPU ------
2>------ Rebuild All started: Project: NServiceBus.PowerShell, Configuration: Debug Any CPU ------
3>------ Rebuild All started: Project: LicenseInstaller, Configuration: Debug Any CPU ------
3>  Pepita (version 1.15.7.2) Executing
3>      Cache path is C:\Users\Indu Alagarsamy\AppData\Local\NuGet\Cache
3>      Using PackagesPath: C:\Users\Indu Alagarsamy\Projects\NServiceBus\Packages
3>      Already exists so skipped C:\Users\Indu Alagarsamy\Projects\NServiceBus\Packages\Fody.1.16.2.0
3>      Already exists so skipped C:\Users\Indu Alagarsamy\Projects\NServiceBus\Packages\GitFlowVersion.Fody.0.1.7
3>      Finished (1ms)
3>  Fody (version 1.16.2.0) Executing
3>MSBUILD : error : Fody: An unhandled exception occurred:
3>MSBUILD : error : Exception:
3>MSBUILD : error : An error was raised by libgit2. Category = Net (Error).
3>MSBUILD : error : This transport isn't implemented. Sorry
3>MSBUILD : error : Data :System.Collections.DictionaryEntry
3>MSBUILD : error : Data :System.Collections.DictionaryEntry
3>MSBUILD : error : StackTrace:
3>MSBUILD : error :    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in :line 0
3>MSBUILD : error :    at LibGit2Sharp.Core.Proxy.git_remote_connect(RemoteSafeHandle remote, GitDirection direction) in :line 0
3>MSBUILD : error :    at LibGit2Sharp.Network.Fetch(Remote remote, Nullable`1 tagFetchMode, ProgressHandler onProgress, CompletionHandler onCompletion, UpdateTipsHandler onUpdateTips, TransferProgressHandler onTransferProgress, Credentials credentials) in :line 0
3>MSBUILD : error :    at GitFlowVersion.LibGitExtensions.GetBranch(Repository repository, String name) in y:\BuildAgent\work\5e0d79a4e3943b17\GitFlowVersion\LibGitExtensions.cs:line 127
3>MSBUILD : error :    at GitFlowVersion.LibGitExtensions.GetMasterBranch(Repository repository) in y:\BuildAgent\work\5e0d79a4e3943b17\GitFlowVersion\LibGitExtensions.cs:line 148
3>MSBUILD : error :    at GitFlowVersion.DevelopVersionFinder.GetSemanticVersion() in y:\BuildAgent\work\5e0d79a4e3943b17\GitFlowVersion\BranchFinders\DevelopVersionFinder.cs:line 28
3>MSBUILD : error :    at GitFlowVersion.DevelopVersionFinder.FindVersion() in y:\BuildAgent\work\5e0d79a4e3943b17\GitFlowVersion\BranchFinders\DevelopVersionFinder.cs:line 14
3>MSBUILD : error :    at GitFlowVersion.GitFlowVersionFinder.FindVersion() in y:\BuildAgent\work\5e0d79a4e3943b17\GitFlowVersion\GitFlowVersionFinder.cs:line 47
3>MSBUILD : error :    at GitFlowVersion.VersionForRepositoryFinder.GetVersion(Repository repository) in y:\BuildAgent\work\5e0d79a4e3943b17\GitFlowVersion\VersionForDirectoryFinder.cs:line 18
3>MSBUILD : error :    at ModuleWeaver.GetSemanticVersion(Repository repo) in y:\BuildAgent\work\5e0d79a4e3943b17\GitFlowVersionFody\ModuleWeaver.cs:line 124
3>MSBUILD : error :    at ModuleWeaver.Execute() in y:\BuildAgent\work\5e0d79a4e3943b17\GitFlowVersionFody\ModuleWeaver.cs:line 51
3>MSBUILD : error :    at lambda_method(Closure , Object )
3>MSBUILD : error :    at InnerWeaver.ExecuteWeavers(List`1 weaverInstances) in c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\InnerWeaver.cs:line 92
3>MSBUILD : error :    at InnerWeaver.Execute() in c:\TeamCity\buildAgent\work\7495521761d392b9\FodyIsolated\InnerWeaver.cs:line 33
3>MSBUILD : error : Source:
3>MSBUILD : error : GitFlowVersion.Fody
3>MSBUILD : error : TargetSite:
3>MSBUILD : error : Void HandleError(Int32)
3>MSBUILD : error : 
3>      Finished Fody 197ms.

Reason:
When I cloned, it cloned it to a develop branch. There was no master local branch.

Workaround:
Git checkout master - build
and then switch branch to develop and build.

Both master and develop local branches are necessary.

@SimonCropp
Copy link
Contributor

I updated Gitflow to output this build error

 Could not fetch from '[email protected]:Particular/NServiceBus.git' since
 LibGit2 does not support the transport. You have most likely cloned using SSH. If there is 
 a remote branch named 'master' then fetch it manually, otherwise please create a local 
 branch named 'master'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants