Feature/dependency autoconfig (#2588)

* dependency autoconfig

* FE portion

---------

Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
Matt Hill
2024-04-03 11:48:26 -06:00
committed by GitHub
parent cc1f14e5e9
commit 3b9298ed2b
23 changed files with 262 additions and 170 deletions

View File

@@ -83,20 +83,20 @@ export class DepErrorService {
}
}
const versionSpec = pkg.currentDependencies[depId].versionSpec
const currentDep = pkg.currentDependencies[depId]
const depManifest = dep.stateInfo.manifest
// incorrect version
if (!this.emver.satisfies(depManifest.version, versionSpec)) {
if (!this.emver.satisfies(depManifest.version, currentDep.versionSpec)) {
return {
type: 'incorrectVersion',
expected: versionSpec,
expected: currentDep.versionSpec,
received: depManifest.version,
}
}
// invalid config
if (Object.values(pkg.status.dependencyConfigErrors).some(err => !!err)) {
if (!currentDep.configSatisfied) {
return {
type: 'configUnsatisfied',
}
@@ -111,8 +111,6 @@ export class DepErrorService {
}
}
const currentDep = pkg.currentDependencies[depId]
// health check failure
if (depStatus === 'running' && currentDep.kind === 'running') {
for (let id of currentDep.healthChecks) {