Skip to content

Commit 6ee3037

Browse files
committed
* Removes BuildSystem from SourceExplorer
1 parent 13909a3 commit 6ee3037

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

buckaroo/DefaultSourceExplorer.fs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ open Buckaroo.Console
66
open Buckaroo.RichOutput
77
open Buckaroo.Logger
88

9-
type DefaultSourceExplorer (console : ConsoleManager, downloadManager : DownloadManager, gitManager : GitManager, buildSystem : BuildSystem) =
9+
type DefaultSourceExplorer (console : ConsoleManager, downloadManager : DownloadManager, gitManager : GitManager) =
1010
let logger = createLogger console (Some "explorer")
1111
let toOptional = Async.Catch >> (Async.map Choice.toOption)
1212

@@ -308,16 +308,7 @@ type DefaultSourceExplorer (console : ConsoleManager, downloadManager : Download
308308
(Manifest.ManifestParseError.show error)
309309
raise <| System.Exception errorMessage
310310
| None ->
311-
// This might be a Bazel project
312-
if buildSystem = Bazel
313-
then
314-
do!
315-
fetchFile location "WORKSPACE"
316-
|> Async.Ignore
317-
318-
return Manifest.zero
319-
else
320-
return raise <| System.Exception ("No manifest was found at " + (PackageLock.show location) + ". ")
311+
return raise <| System.Exception ("No manifest was found at " + (PackageLock.show location) + ". ")
321312
}
322313

323314
member this.FetchLock (location, versions) =

buckaroo/Tasks.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ let getContext loggingLevel fetchStyle = async {
8888

8989
let! buildSystem = determineBuildSystem (createLogger consoleManager None)
9090

91-
let sourceExplorer = DefaultSourceExplorer(consoleManager, downloadManager, gitManager, buildSystem)
91+
let sourceExplorer = DefaultSourceExplorer(consoleManager, downloadManager, gitManager)
9292

9393
return {
9494
Console = consoleManager

0 commit comments

Comments
 (0)