Skip to content

Commit

Permalink
Update GenerateGlobalSolution to only include solutions from reposito…
Browse files Browse the repository at this point in the history
…ries.yml
  • Loading branch information
matkoch committed May 15, 2023
1 parent 5b0ffe6 commit cd1a29a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
5 changes: 4 additions & 1 deletion build/Build.GlobalSolution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ partial class Build
AbsolutePath ExternalRepositoriesFile => ExternalRepositoriesDirectory / "repositories.yml";

IEnumerable<Nuke.Common.ProjectModel.Solution> ExternalSolutions
=> ExternalRepositoriesDirectory.GlobFiles("*/*.sln").Select(x => ParseSolution(x));
=> ExternalRepositories
.Select(x => ExternalRepositoriesDirectory / x.GetGitHubName())
.Select(x => x.GlobFiles("*.sln").Single())
.Select(x => x.ReadSolution());

IEnumerable<GitRepository> ExternalRepositories
=> ExternalRepositoriesFile.ReadYaml<string[]>().Select(x => GitRepository.FromUrl(x));
Expand Down
11 changes: 2 additions & 9 deletions external/repositories.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
- https://github.com/nuke-build/.github.git
- https://github.com/nuke-build/functions.git
- https://github.com/nuke-build/enterprise.git
- https://github.com/nuke-build/generated-solution.git
- https://github.com/nuke-build/images.git
- https://github.com/nuke-build/playground.git
- https://github.com/nuke-build/promo.git
- https://github.com/nuke-build/remote.git
- https://github.com/nuke-build/resharper.git
- https://github.com/nuke-build/roslyn.git
- https://github.com/nuke-build/tweets.git
- https://github.com/nuke-build/visualstudio.git
- https://github.com/nuke-build/vscode.git
- https://github.com/nuke-build/website.git

0 comments on commit cd1a29a

Please sign in to comment.