Skip to content
This repository was archived by the owner on Sep 30, 2023. It is now read-only.

Commit 32f751a

Browse files
committed
no nuget module
1 parent 5c55d6c commit 32f751a

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

Common/ModuleGetter.cs

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Linq;
@@ -44,12 +44,6 @@ public void GetDeps()
4444
rootRepoTreeish = rootRepo.CurrentLocalTreeish().Value;
4545

4646
var depsContent = new DepsParser(rootRepo.RepoPath).Get(rootModule.Configuration);
47-
if (!Directory.Exists(Path.Combine(Helper.CurrentWorkspace, "nuget"))
48-
&& modules.Any(m => m.Name == "nuget"))
49-
{
50-
depsContent.Deps.Add(new Dep("nuget"));
51-
}
52-
5347
depsContent.Force = Helper.DefineForce(depsContent.Force, rootRepo);
5448
Log.Info("OK");
5549

Common/NuGetHelper.cs

-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ private static string GetNuGetPath()
4747
{
4848
var nuget = Path.Combine(Helper.GetCementInstallDirectory(), "dotnet", "NuGet.exe");
4949
if (!File.Exists(nuget))
50-
{
51-
Log.Error($"NuGet.exe not found in {nuget}");
52-
nuget = Path.Combine(Helper.CurrentWorkspace, "nuget", "bin", "NuGet.exe");
53-
}
54-
if (!File.Exists(nuget))
5550
{
5651
Log.Error($"NuGet.exe not found in {nuget}");
5752
return null;

0 commit comments

Comments
 (0)