Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Properties VCPKG #855

Merged
merged 3 commits into from
Oct 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Microsoft.ComponentDetection.Contracts.TypedComponent;
namespace Microsoft.ComponentDetection.Contracts.TypedComponent;

using PackageUrl;

Expand All @@ -20,6 +20,9 @@ public VcpkgComponent(string spdxid, string name, string version, string triplet
this.Triplet = triplet;
this.Description = description;
this.DownloadLocation = downloadLocation;
var locationArr = downloadLocation.Split('/');
this.GitRepositoryOwner = locationArr[3];
this.GitRepositoryName = locationArr[4].Split('@')[0];
amitla1 marked this conversation as resolved.
Show resolved Hide resolved
}

public string SPDXID { get; set; }
Expand All @@ -28,6 +31,10 @@ public VcpkgComponent(string spdxid, string name, string version, string triplet

public string DownloadLocation { get; set; }

public string GitRepositoryOwner { get; set; }

public string GitRepositoryName { get; set; }

public string Triplet { get; set; }

public string Version { get; set; }
Expand Down
Loading