import { GoTreeNode } from '../treeDataProviders/dependenciesTree/dependenciesRoot/goTree' ; import { DependenciesTreeNode } from '../treeDataProviders/dependenciesTree/dependenciesTreeNode' ; import { GoUtils } from '../utils/goUtils' ; import { ScanUtils } from '../utils/scanUtils' ; import { AbstractDependencyUpdate } from './abstractDependencyUpdate' ; export class GoDependencyUpdate extends AbstractDependencyUpdate { constructor ( ) { super ( GoUtils . PKG_TYPE ) ; } @override  public isMatched ( dependenciesTreeNode ) { return super . isMatched ( dependenciesTreeNode ) && dependenciesTreeNode . parent instanceof GoTreeNode ; } @override  public updateDependencyVersion ( dependenciesTreeNode , fixedVersion ) { const workspace = ( < GoTreeNode > dependenciesTreeNode . parent ) . workspaceFolder ; ScanUtils . executeCmd ( 'go get ' + dependenciesTreeNode . generalInfo . artifactId + '@v' + fixedVersion , workspace ) ; dependenciesTreeNode . generalInfo . version = fixedVersion ; } }