diff --git a/code/go/internal/validator/semantic/validate_datastream_package_categories.go b/code/go/internal/validator/semantic/validate_datastream_package_categories.go index 7e538b383..91ad1804f 100644 --- a/code/go/internal/validator/semantic/validate_datastream_package_categories.go +++ b/code/go/internal/validator/semantic/validate_datastream_package_categories.go @@ -19,7 +19,7 @@ import ( "github.com/elastic/package-spec/v3/code/go/pkg/specerrors" ) -const packageRegistryCategoriesURL = "https://raw.githubusercontent.com/elastic/package-registry/v1.38.0/categories/categories.yml" +const packageRegistryCategoriesURL = "https://raw.githubusercontent.com/elastic/package-registry/v1.39.0/categories/categories.yml" type registryCategories struct { Categories map[string]struct { @@ -102,7 +102,8 @@ func ValidateDatastreamPackageCategories(fsys fspath.FS) specerrors.ValidationEr pkgType, pkgCategories, err := readPackageManifestTypeAndCategories(fsys) if err != nil { return specerrors.ValidationErrors{ - specerrors.NewStructuredErrorf("file \"%s\" is invalid: %w", fsys.Path(manifestPath), err)} + specerrors.NewStructuredErrorf("file \"%s\" is invalid: %w", fsys.Path(manifestPath), err), + } } if pkgType != integrationPackageType { @@ -112,7 +113,8 @@ func ValidateDatastreamPackageCategories(fsys fspath.FS) specerrors.ValidationEr dsCategories, err := readDataStreamManifestCategories(fsys) if err != nil { return specerrors.ValidationErrors{ - specerrors.NewStructuredErrorf("file \"%s\" is invalid: %w", fsys.Path(manifestPath), err)} + specerrors.NewStructuredErrorf("file \"%s\" is invalid: %w", fsys.Path(manifestPath), err), + } } if len(dsCategories) == 0 { @@ -122,7 +124,8 @@ func ValidateDatastreamPackageCategories(fsys fspath.FS) specerrors.ValidationEr categoryToParent, err := fetchRegistryCategoryToParentMap() if err != nil { return specerrors.ValidationErrors{ - specerrors.NewStructuredErrorf("file \"%s\" is invalid: failed to load registry categories: %w", fsys.Path(manifestPath), err)} + specerrors.NewStructuredErrorf("file \"%s\" is invalid: failed to load registry categories: %w", fsys.Path(manifestPath), err), + } } var errs specerrors.ValidationErrors diff --git a/spec/changelog.yml b/spec/changelog.yml index 881a010a5..287fd9dd8 100644 --- a/spec/changelog.yml +++ b/spec/changelog.yml @@ -17,6 +17,11 @@ - description: Remove the search type from by-reference validation checks. type: bugfix link: https://github.com/elastic/package-spec/pull/1196 +- version: 3.6.7-next + changes: + - description: Update EPR categories reference URL to v1.39.0. + type: bugfix + link: https://github.com/elastic/package-spec/pull/1215 - version: 3.6.6-next changes: - description: Add support for saved search assets in content packages.