From a1d5b59fc7795dd3052b5e33927adad71278dba3 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Sun, 15 Dec 2024 20:14:52 -0500 Subject: [PATCH] Pull vendordep manifests from artifactory (#733) --- vscode-wpilib/src/dependencyView.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vscode-wpilib/src/dependencyView.ts b/vscode-wpilib/src/dependencyView.ts index 28169101..a7ae721c 100644 --- a/vscode-wpilib/src/dependencyView.ts +++ b/vscode-wpilib/src/dependencyView.ts @@ -34,7 +34,7 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider { private installedList: IDepInstalled[] = []; // To display deps in the installed list private homeDeps: IJsonDependency[] = []; // These are the offline deps in the home directory private externalApi: IExternalAPI; - private ghURL = `https://raw.githubusercontent.com/wpilibsuite/vendor-json-repo/master/`; + private vendordepMarketplaceURL = `https://frcmaven.wpi.edu/artifactory/vendordeps/vendordep-marketplace/`; private wp: vscode.WorkspaceFolder | undefined; private changed = 0; @@ -253,7 +253,7 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider { // Check to see if it is already a URL let url = avail.path; if (url.substring(0, 4) !== 'http') { - url = this.ghURL + url; + url = this.vendordepMarketplaceURL + url; } try { dependency = await this.vendorLibraries.getJsonDepURL(url); @@ -391,7 +391,7 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider { public async getAvailableDependencies(): Promise { this.homeDeps = []; - const listURL = this.ghURL + `${this.externalApi.getUtilitiesAPI().getFrcYear()}.json`; + const listURL = this.vendordepMarketplaceURL + `${this.externalApi.getUtilitiesAPI().getFrcYear()}.json`; try { this.onlineDeps = await this.loadFileFromUrl(listURL); } catch (err) {