Skip to content

Commit

Permalink
Fix Nuget uppercase modules cache issue (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverdlov93 authored Feb 21, 2024
1 parent cdaf0a5 commit e82123f
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 e82123f

Please sign in to comment.