-
Notifications
You must be signed in to change notification settings - Fork 880
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build track 2 content in module-aware mode (#11844)
- Loading branch information
1 parent
dad758b
commit 4df9021
Showing
6 changed files
with
84 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Param( | ||
[string] $serviceDir | ||
) | ||
|
||
$modDirs = [Collections.Generic.List[String]]@() | ||
|
||
# find each module directory under $serviceDir | ||
Get-Childitem -recurse -path $serviceDir -filter go.mod | foreach-object { | ||
$cdir = $_.Directory | ||
Write-Host "Adding $cdir to list of module paths" | ||
$modDirs.Add($cdir) | ||
} | ||
|
||
# return the list of module directories | ||
return $modDirs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Param( | ||
[string] $serviceDir | ||
) | ||
|
||
$testDirs = [Collections.Generic.List[String]]@() | ||
|
||
# find each directory under $serviceDir that contains Go test files | ||
Get-Childitem -recurse -path $serviceDir -filter *_test.go | foreach-object { | ||
$cdir = $_.Directory | ||
if (!$testDirs.Contains($cdir)) { | ||
Write-Host "Adding $cdir to list of test directories" | ||
$testDirs.Add($cdir) | ||
} | ||
} | ||
|
||
# return the list of test directories | ||
return $testDirs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ else { | |
|
||
$path = Resolve-Path -Path $targetDir | ||
|
||
return "$path/..." | ||
return "$path" |