Entrypoint constructor

Entrypoint(
  1. String workingDir,
  2. SystemCache cache, {
  3. bool checkInCache = true,
})

An entrypoint for the workspace containing workingDir/

If checkInCache is true (the default) an error will be thrown if rootDir is located inside cache.rootDir.

Implementation

Entrypoint(
  this.workingDir,
  this.cache, {
  bool checkInCache = true,
}) : isCachedGlobal = false {
  if (checkInCache && p.isWithin(cache.rootDir, workingDir)) {
    fail('Cannot operate on packages inside the cache.');
  }
}