Skip to content

Commit

Permalink
Pull vendordep manifests from artifactory (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue authored Dec 16, 2024
1 parent e6cf42c commit a1d5b59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vscode-wpilib/src/dependencyView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -391,7 +391,7 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider {

public async getAvailableDependencies(): Promise<IJsonList[]> {
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) {
Expand Down

0 comments on commit a1d5b59

Please sign in to comment.