MCPcopy Index your code
hub / github.com/actions/setup-java / findPackageManager

Function findPackageManager

src/cache.ts:76–84  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

74}
75
76function findPackageManager(id: string): PackageManager {
77 const packageManager = supportedPackageManager.find(
78 packageManager => packageManager.id === id
79 );
80 if (packageManager === undefined) {
81 throw new Error(`unknown package manager specified: ${id}`);
82 }
83 return packageManager;
84}
85
86/**
87 * A function that generates a cache key to use.

Callers 2

restoreFunction · 0.85
saveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected