This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
forked from Protobuild/Protobuild
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for resolving packages from https-nuget-v3:// URIs (Proto…
- Loading branch information
Showing
13 changed files
with
460 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
Protobuild.Internal/Packages/PackageMetadata/ICachableBinaryPackageMetadata.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
Protobuild.Internal/Packages/PackageMetadata/NuGet3PackageMetadata.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
namespace Protobuild | ||
{ | ||
internal class NuGet3PackageMetadata : ICachableBinaryPackageMetadata | ||
{ | ||
public NuGet3PackageMetadata( | ||
string repositoryIndexUri, | ||
string packageName, | ||
string packageType, | ||
string sourceUri, | ||
string platform, | ||
string version, | ||
string binaryFormat, | ||
string binaryUri, | ||
string commitHashForSourceResolve, | ||
ResolveMetadataDelegate resolve) | ||
{ | ||
RepositoryIndexUri = repositoryIndexUri; | ||
PackageName = packageName; | ||
PackageType = packageType; | ||
SourceUri = sourceUri; | ||
Platform = platform; | ||
Version = version; | ||
BinaryFormat = binaryFormat; | ||
BinaryUri = binaryUri; | ||
CommitHashForSourceResolve = commitHashForSourceResolve; | ||
Resolve = resolve; | ||
} | ||
|
||
public string RepositoryIndexUri { get; } | ||
|
||
public string PackageName { get; } | ||
|
||
public string PackageType { get; } | ||
|
||
public ResolveMetadataDelegate Resolve { get; } | ||
|
||
public GetProtobuildPackageBinaryDelegate GetProtobuildPackageBinary => null; | ||
|
||
public string SourceUri { get; } | ||
|
||
public string Platform { get; } | ||
|
||
string ICachableBinaryPackageMetadata.CanonicalURI => $"{RepositoryIndexUri}|{PackageName}"; | ||
|
||
string ICachableBinaryPackageMetadata.GitCommitOrRef => Version; | ||
|
||
public string Version { get; } | ||
|
||
public string CommitHashForSourceResolve { get; } | ||
|
||
public string BinaryFormat { get; } | ||
|
||
public string BinaryUri { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.