mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-13 07:59:50 +08:00
Backport of #21275
This commit is contained in:
parent
a3c75ac438
commit
c83a05f114
@ -266,7 +266,7 @@ func TestPackageConan(t *testing.T) {
|
|||||||
|
|
||||||
pd, err := packages.GetPackageDescriptor(db.DefaultContext, pvs[0])
|
pd, err := packages.GetPackageDescriptor(db.DefaultContext, pvs[0])
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
assert.NotNil(t, pd.SemVer)
|
assert.Nil(t, pd.SemVer)
|
||||||
assert.Equal(t, name, pd.Package.Name)
|
assert.Equal(t, name, pd.Package.Name)
|
||||||
assert.Equal(t, version1, pd.Version.Version)
|
assert.Equal(t, version1, pd.Version.Version)
|
||||||
assert.IsType(t, &conan_module.Metadata{}, pd.Metadata)
|
assert.IsType(t, &conan_module.Metadata{}, pd.Metadata)
|
||||||
|
@ -342,7 +342,6 @@ func uploadFile(ctx *context.Context, fileFilter stringSet, fileKey string) {
|
|||||||
Name: rref.Name,
|
Name: rref.Name,
|
||||||
Version: rref.Version,
|
Version: rref.Version,
|
||||||
},
|
},
|
||||||
SemverCompatible: true,
|
|
||||||
Creator: ctx.Doer,
|
Creator: ctx.Doer,
|
||||||
}
|
}
|
||||||
pfci := &packages_service.PackageFileCreationInfo{
|
pfci := &packages_service.PackageFileCreationInfo{
|
||||||
|
Loading…
Reference in New Issue
Block a user