-
Notifications
You must be signed in to change notification settings - Fork 451
C#: Cache temporary dependency directory for BMN #3286
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
Changes from 1 commit
cf8b7a6
d854ba6
a47d04c
ecaa6db
f5f9571
0155561
3e93966
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,17 @@ export function getJavaDependencyDirs(): string[] { | |
| ]; | ||
| } | ||
|
|
||
| /** | ||
| * Returns an array of paths of directories on the runner that should be included in a dependency cache | ||
| * for a C# analysis. | ||
| * | ||
| * @returns The paths of directories on the runner that should be included in a dependency cache | ||
| * for a C# analysis. | ||
| */ | ||
|
Comment on lines
+81
to
+87
|
||
| export function getCsharpDependencyDirs(): string[] { | ||
| return [join(os.homedir(), ".nuget", "packages")]; | ||
| } | ||
|
|
||
| /** | ||
| * Checks that there are files which match `patterns`. If there are matching files for any of the patterns, | ||
| * this function returns all `patterns`. Otherwise, `undefined` is returned. | ||
|
|
@@ -158,7 +169,7 @@ const defaultCacheConfigs: { [language: string]: CacheConfig } = { | |
| ]), | ||
| }, | ||
| csharp: { | ||
| getDependencyPaths: () => [join(os.homedir(), ".nuget", "packages")], | ||
| getDependencyPaths: getCsharpDependencyDirs, | ||
| getHashPatterns: getCsharpHashPatterns, | ||
| }, | ||
| go: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, here and elsewhere: avoid duplicating doc comments by just keeping the
@returnsparagraph.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not worth the effort of changing here, but happy to reduce duplication going forward.