Update jsonschema library and other tools

Description

Update jsonschema library and other tools

Context - gitlab-runner!6499 (comment 3134137559)

Changes


  1. go work sync created a bunch of changes without any change on my end!

  1. schema/v1/validate.go — Fix jsonschema v6 breaking API change

    jsonschema.MustCompileString was removed in v6. Replaced it with a mustCompileString helper that uses the new API: jsonschema.UnmarshalJSON → Compiler.AddResource → Compiler.MustCompile.


  1. schema/v1/reference_test.go & schema/v1/outputs_test.go — Same API fix in tests

    Both test files used jsonschema.MustCompileString directly. Replaced with the new mustCompileString helper (same package, so accessible), and removed the now-unused jsonschema import.


  1. schema/v1/spec_json_test.go — Update error message strings

    The new v6 library produces different error message phrasing. Updated wantErr strings to match:


  1. pkg/testutil/oci/go.mod — Upgrade otel packages to a consistent set

    grpc v1.79.1 requires otel/sdk v1.39.0, but the otel exporter packages were still at their v1.32.0-era versions (brought in transitively via distribution/distribution/v3 v3.0.0 → autoexport v0.57.0). This caused two problems:

    • go mod tidy failed because otel/sdk/log v0.8.0's tests import otel/sdk/internal/internaltest, which was removed in otel/sdk v1.37.0+
    • stdoutlog v0.8.0 had a type incompatibility with the resource.Resource API that changed in otel/sdk v1.39.0

    Upgraded autoexport to v0.64.0 (co-released with otel/sdk v1.39.0), which transitively pulled all otel exporter packages to their compatible versions. Since distribution v3.0.0 is the only stable release and can't be upgraded, explicitly pinning the compatible indirect versions in go.mod is the correct resolution.

Edited by Vishal Tak

Merge request reports

Loading