Skip to content

Commit

Permalink
empty archive
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Sverdlov <[email protected]>
  • Loading branch information
sverdlov93 committed Feb 21, 2024
1 parent 261ad5d commit 1552ac5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/utils/dotnet/dependencies/packagesconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func searchRootDependencies(dfsHelper map[string]*dfsHelper, currentId string, a
}

func createNugetPackage(packagesPath string, nuget xmlPackage, nPackage *nugetPackage, log utils.Log) (*nugetPackage, error) {
nupkgPath := filepath.Join(packagesPath, nuget.Id, nPackage.version, strings.Join([]string{nuget.Id, nPackage.version, "nupkg"}, "."))
nupkgPath := filepath.Join(packagesPath, nPackage.id, nPackage.version, strings.Join([]string{nPackage.id, nPackage.version, "nupkg"}, "."))

exists, err := utils.IsFileExists(nupkgPath, false)

Expand All @@ -217,7 +217,7 @@ func createNugetPackage(packagesPath string, nuget xmlPackage, nPackage *nugetPa
nPackage.dependency = &buildinfo.Dependency{Id: nuget.Id + ":" + nuget.Version, Checksum: buildinfo.Checksum{Sha1: fileDetails.Checksum.Sha1, Md5: fileDetails.Checksum.Md5}}

// Nuspec file that holds the metadata for the package.
nuspecPath := filepath.Join(packagesPath, nuget.Id, nPackage.version, strings.Join([]string{nuget.Id, "nuspec"}, "."))
nuspecPath := filepath.Join(packagesPath, nPackage.id, nPackage.version, strings.Join([]string{nPackage.id, "nuspec"}, "."))
nuspecContent, err := os.ReadFile(nuspecPath)
if err != nil {
return nil, err
Expand Down

0 comments on commit 1552ac5

Please sign in to comment.