mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
Feature/dependency autoconfig (#2588)
* dependency autoconfig * FE portion --------- Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user