Skip to content

Update go-openapi packages#148

Closed
red-hat-konflux-kflux-prd-rh02[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/go-openapi
Closed

Update go-openapi packages#148
red-hat-konflux-kflux-prd-rh02[bot] wants to merge 1 commit into
mainfrom
konflux/mintmaker/main/go-openapi

Conversation

@red-hat-konflux-kflux-prd-rh02
Copy link
Copy Markdown

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
github.com/go-openapi/jsonpointer v0.21.0v0.23.1 age confidence
github.com/go-openapi/swag v0.23.0v0.26.0 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

go-openapi/jsonpointer (github.com/go-openapi/jsonpointer)

v0.23.1

Compare Source

0.23.1 - 2026-04-18

Full Changelog: go-openapi/jsonpointer@v0.23.0...v0.23.1

5 commits in this release.


Fixed bugs
  • fix(offset): in Offset method, fixed index of value of array element. by @​fredbi in #​128 ...
Documentation
Updates

People who contributed to this release

jsonpointer license terms

License

v0.23.0

Compare Source

0.23.0 - 2026-04-15

Support for known limitations

Full Changelog: go-openapi/jsonpointer@v0.22.5...v0.23.0

16 commits in this release.


Implemented enhancements
Fixed bugs
Documentation
Miscellaneous tasks
Updates

People who contributed to this release

New Contributors

jsonpointer license terms

License

v0.22.5

Compare Source

0.22.5 - 2026-03-02

Full Changelog: go-openapi/jsonpointer@v0.22.4...v0.22.5

15 commits in this release.


Documentation
Code quality
Miscellaneous tasks
Updates

People who contributed to this release

New Contributors

jsonpointer license terms

License

v0.22.4

Compare Source

0.22.4 - 2025-12-06

Full Changelog: go-openapi/jsonpointer@v0.22.3...v0.22.4

1 commits in this release.


Miscellaneous tasks

People who contributed to this release

jsonpointer license terms

License

v0.22.3

Compare Source

0.22.3 - 2025-11-17

Full Changelog: go-openapi/jsonpointer@v0.22.2...v0.22.3

8 commits in this release.


Documentation
Code quality
Miscellaneous tasks

People who contributed to this release

New Contributors

jsonpointer license terms

License

v0.22.2

Compare Source

0.22.2 - 2025-11-14

Full Changelog: go-openapi/jsonpointer@v0.22.1...v0.22.2

12 commits in this release.


Documentation
Code quality
Testing
Miscellaneous tasks
Security
Updates

People who contributed to this release

jsonpointer license terms

License

v0.22.1

Compare Source

v0.22.0

Compare Source

v0.21.2

Compare Source

v0.21.1

Compare Source

go-openapi/swag (github.com/go-openapi/swag)

v0.26.0

Compare Source

0.26.0 - 2026-04-15

Full Changelog: go-openapi/swag@v0.25.5...v0.26.0

14 commits in this release.


Implemented enhancements
  • feat(jsonname): added new json name provider more respectful of go co… by @​fredbi in #​195 ...
Documentation
Code quality
Miscellaneous tasks
Updates

People who contributed to this release

swag license terms

License

Per-module changes


cmdutils (0.26.0)

Miscellaneous tasks

conv (0.26.0)

Miscellaneous tasks
Updates

fileutils (0.26.0)

Miscellaneous tasks
Updates

jsonname (0.26.0)

Implemented enhancements
  • feat(jsonname): added new json name provider more respectful of go co… by @​fredbi in #​195 ...
Miscellaneous tasks
Updates

jsonutils/adapters/easyjson (0.26.0)

Miscellaneous tasks
Updates

jsonutils/adapters/testintegration/benchmarks (0.26.0)

Miscellaneous tasks
Updates

jsonutils/adapters/testintegration (0.26.0)

Miscellaneous tasks
Updates

jsonutils/fixtures_test (0.26.0)

Miscellaneous tasks
Updates

jsonutils (0.26.0)

Miscellaneous tasks
Updates

loading (0.26.0)

Miscellaneous tasks
Updates

mangling (0.26.0)

Miscellaneous tasks
Updates

netutils (0.26.0)

Miscellaneous tasks
Updates

stringutils (0.26.0)

Miscellaneous tasks
Updates

typeutils (0.26.0)

Miscellaneous tasks
Updates

yamlutils (0.26.0)

Miscellaneous tasks
Updates

v0.25.5

Compare Source

0.25.5 - 2026-03-02

Full Changelog: go-openapi/swag@v0.25.4...v0.25.5

16 commits in this release.


Documentation
Code quality
Testing
Miscellaneous tasks
Updates

People who contributed to this release

New Contributors

swag license terms

License

Per-module changes


cmdutils (0.25.5)

Testing

conv (0.25.5)

Testing
Miscellaneous tasks
Updates

fileutils (0.25.5)

Testing
Upd

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

To execute skipped test pipelines write comment /ok-to-test.


Documentation

Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.

Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
@red-hat-konflux-kflux-prd-rh02
Copy link
Copy Markdown
Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -t ./...
go: downloading github.com/spf13/cobra v1.8.1
go: downloading github.com/spf13/pflag v1.0.10
go: downloading go.opentelemetry.io/otel/sdk v1.43.0
go: downloading github.com/gorilla/handlers v1.4.2
go: downloading go.opentelemetry.io/otel v1.43.0
go: downloading github.com/gorilla/mux v1.8.0
go: downloading github.com/prometheus/client_golang v1.16.0
go: downloading github.com/onsi/gomega v1.27.1
go: downloading github.com/prometheus/client_model v0.3.0
go: downloading github.com/google/uuid v1.6.0
go: downloading gorm.io/datatypes v1.2.7
go: downloading gorm.io/gorm v1.30.0
go: downloading github.com/MicahParks/jwkset v0.11.0
go: downloading github.com/MicahParks/keyfunc/v3 v3.8.0
go: downloading github.com/golang-jwt/jwt/v5 v5.3.1
go: downloading github.com/mendsley/gojwk v0.0.0-20141217222730-4d5ec6e58103
go: downloading github.com/go-playground/validator/v10 v10.20.0
go: downloading github.com/spf13/viper v1.21.0
go: downloading github.com/stretchr/testify v1.11.1
go: downloading github.com/jinzhu/inflection v1.0.0
go: downloading github.com/Masterminds/squirrel v1.1.0
go: downloading github.com/go-gormigrate/gormigrate/v2 v2.0.0
go: downloading github.com/yaacov/tree-search-language v0.0.0-20190923184055-1c2dad2e354b
go: downloading github.com/DATA-DOG/go-sqlmock v1.5.2
go: downloading gorm.io/driver/postgres v1.6.0
go: downloading github.com/oapi-codegen/runtime v1.2.0
go: downloading github.com/lib/pq v1.10.9
go: downloading github.com/testcontainers/testcontainers-go v0.42.0
go: downloading github.com/testcontainers/testcontainers-go/modules/postgres v0.42.0
go: downloading go.uber.org/mock v0.6.0
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0
go: downloading go.opentelemetry.io/otel/trace v1.43.0
go: downloading go.opentelemetry.io/contrib/propagators/autoprop v0.68.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.43.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.43.0
go: downloading go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0
go: downloading go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.43.0
go: downloading github.com/getkin/kin-openapi v0.133.0
go: downloading github.com/inconshreveable/mousetrap v1.1.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/common v0.42.0
go: downloading github.com/prometheus/procfs v0.10.1
go: downloading golang.org/x/sys v0.42.0
go: downloading google.golang.org/protobuf v1.36.11
go: downloading github.com/google/go-cmp v0.7.0
go: downloading github.com/golang/protobuf v1.5.4
go: downloading gorm.io/driver/mysql v1.5.6
go: downloading golang.org/x/time v0.11.0
go: downloading github.com/jinzhu/now v1.1.5
go: downloading github.com/bxcodec/faker/v3 v3.2.0
go: downloading gopkg.in/resty.v1 v1.12.0
go: downloading github.com/gabriel-vasile/mimetype v1.4.3
go: downloading github.com/go-playground/universal-translator v0.18.1
go: downloading github.com/leodido/go-urn v1.4.0
go: downloading golang.org/x/crypto v0.49.0
go: downloading golang.org/x/text v0.35.0
go: downloading github.com/fsnotify/fsnotify v1.9.0
go: downloading github.com/go-viper/mapstructure/v2 v2.4.0
go: downloading github.com/sagikazarmark/locafero v0.11.0
go: downloading github.com/spf13/afero v1.15.0
go: downloading github.com/spf13/cast v1.10.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/lann/builder v0.0.0-20180802200727-47ae307949d0
go: downloading github.com/jackc/pgx/v5 v5.6.0
go: downloading github.com/antlr/antlr4 v0.0.0-20190518164840-edae2a1c9b4b
go: downloading dario.cat/mergo v1.0.2
go: downloading github.com/cenkalti/backoff/v4 v4.3.0
go: downloading github.com/containerd/errdefs v1.0.0
go: downloading github.com/containerd/platforms v0.2.1
go: downloading github.com/cpuguy83/dockercfg v0.3.2
go: downloading github.com/moby/go-archive v0.2.0
go: downloading github.com/moby/moby/api v1.54.1
go: downloading github.com/moby/moby/client v0.4.0
go: downloading github.com/moby/patternmatcher v0.6.1
go: downloading github.com/opencontainers/image-spec v1.1.1
go: downloading github.com/felixge/httpsnoop v1.0.4
go: downloading go.opentelemetry.io/otel/metric v1.43.0
go: downloading github.com/go-logr/logr v1.4.3
go: downloading go.opentelemetry.io/contrib/propagators/aws v1.43.0
go: downloading go.opentelemetry.io/contrib/propagators/b3 v1.43.0
go: downloading go.opentelemetry.io/contrib/propagators/jaeger v1.43.0
go: downloading go.opentelemetry.io/contrib/propagators/ot v1.43.0
go: downloading go.opentelemetry.io/proto/otlp v1.10.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20260401024825-9d38bb4040a9
go: downloading google.golang.org/grpc v1.80.0
go: downloading github.com/go-openapi/jsonpointer v0.23.1
go: downloading github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
go: downloading github.com/oasdiff/yaml v0.0.0-20250309154309-f31be36b4037
go: downloading github.com/perimeterx/marshmallow v1.1.5
go: downloading github.com/woodsbury/decimal128 v1.3.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading go.opentelemetry.io/auto/sdk v1.2.1
go: downloading golang.org/x/net v0.52.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/go-sql-driver/mysql v1.8.1
go: downloading github.com/go-playground/locales v0.14.1
go: downloading github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading github.com/pelletier/go-toml/v2 v2.2.4
go: downloading go.yaml.in/yaml/v3 v3.0.4
go: downloading github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0
go: downloading github.com/jackc/pgpassfile v1.0.0
go: downloading github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761
go: downloading github.com/containerd/log v0.1.0
go: downloading github.com/moby/sys/sequential v0.6.0
go: downloading github.com/moby/sys/user v0.4.0
go: downloading github.com/moby/sys/userns v0.1.0
go: downloading github.com/docker/go-units v0.5.0
go: downloading github.com/moby/docker-image-spec v1.3.1
go: downloading github.com/Microsoft/go-winio v0.6.2
go: downloading github.com/containerd/errdefs/pkg v0.3.0
go: downloading github.com/distribution/reference v0.6.0
go: downloading github.com/docker/go-connections v0.6.0
go: downloading github.com/opencontainers/go-digest v1.0.0
go: downloading github.com/moby/term v0.5.2
go: downloading github.com/magiconair/properties v1.8.10
go: downloading github.com/shirou/gopsutil/v4 v4.26.3
go: downloading go.uber.org/multierr v1.11.0
go: downloading github.com/cenkalti/backoff/v5 v5.0.3
go: downloading github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0
go: downloading github.com/go-openapi/swag v0.26.0
go: downloading github.com/go-openapi/swag/jsonname v0.26.0
go: downloading github.com/oasdiff/yaml3 v0.0.0-20250309153720-d2182401db90
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading filippo.io/edwards25519 v1.1.0
go: downloading github.com/jackc/puddle/v2 v2.2.2
go: downloading github.com/sirupsen/logrus v1.9.4
go: downloading github.com/klauspost/compress v1.18.5
go: downloading github.com/tklauser/go-sysconf v0.3.16
go: downloading google.golang.org/genproto/googleapis/api v0.0.0-20260401024825-9d38bb4040a9
go: downloading github.com/josharian/intern v1.0.0
go: downloading golang.org/x/sync v0.20.0
go: downloading github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c
go: downloading github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0
go: downloading github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55
go: downloading github.com/ebitengine/purego v0.10.0
go: downloading github.com/yusufpapurcu/wmi v1.2.4
go: downloading github.com/tklauser/numcpus v0.11.0
go: downloading github.com/go-ole/go-ole v1.2.6
go: github.com/openshift-hyperfleet/hyperfleet-api/pkg/api imports
	github.com/openshift-hyperfleet/hyperfleet-api/pkg/api/openapi: cannot find module providing package github.com/openshift-hyperfleet/hyperfleet-api/pkg/api/openapi
go: module github.com/bxcodec/faker/v3 is deprecated: use github.com/go-faker/faker/v4 instead.

@openshift-ci openshift-ci Bot requested review from mbrudnoy and vkareh May 13, 2026 16:05
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 13, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign aredenba-rh for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 13, 2026

Hi @red-hat-konflux-kflux-prd-rh02[bot]. Thanks for your PR.

I'm waiting for a openshift-hyperfleet member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated project dependencies to the latest versions.

Walkthrough

This pull request updates two indirect Go module dependencies in go.mod. The version github.com/go-openapi/jsonpointer is upgraded from v0.21.0 to v0.23.1, and github.com/go-openapi/swag is upgraded from v0.23.0 to v0.26.0. No source code or exported declarations are modified.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Update go-openapi packages' directly and clearly summarizes the main change: updating two go-openapi dependencies.
Description check ✅ Passed The description is related to the changeset; it details the specific package versions being updated and includes comprehensive release notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch konflux/mintmaker/main/go-openapi

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@go.mod`:
- Around line 82-83: go.mod lists github.com/go-openapi/jsonpointer v0.23.1 and
github.com/go-openapi/swag v0.26.0 but those versions are not present in go.sum,
breaking module integrity; either run `go mod tidy` to update go.sum (so
jsonpointer@v0.23.1 and swag@v0.26.0 are recorded) or revert/remove the explicit
requirements for github.com/go-openapi/jsonpointer and
github.com/go-openapi/swag if the bump was accidental, and while fixing, verify
why these explicit version pins were added (check for compatibility across
consumers like sentinel/adapter) to avoid forcing newer transitive versions
unnecessarily.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: a56bd795-4584-48fd-a51f-15b2562b1e72

📥 Commits

Reviewing files that changed from the base of the PR and between 19fe72e and 887d96c.

📒 Files selected for processing (1)
  • go.mod

Comment thread go.mod
Comment on lines +82 to +83
github.com/go-openapi/jsonpointer v0.23.1 // indirect
github.com/go-openapi/swag v0.26.0 // indirect
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | 🏗️ Heavy lift

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check lines 82-83 and surrounding context in go.mod
echo "=== hyperfleet-api go.mod lines 80-85 ==="
sed -n '80,85p' go.mod

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 434


🏁 Script executed:

#!/bin/bash
# Check the .bingo/oapi-codegen.sum file for go-openapi versions
echo "=== hyperfleet-sentinel .bingo/oapi-codegen.sum ==="
cat .bingo/oapi-codegen.sum 2>/dev/null | head -20 || echo "File not found"

Repository: openshift-hyperfleet/hyperfleet-sentinel

Length of output: 2125


🏁 Script executed:

#!/bin/bash
# Check go.mod for comparison
echo "=== hyperfleet-adapter go.mod go-openapi entries ==="
grep -n "go-openapi" go.mod || echo "No go-openapi found"

Repository: openshift-hyperfleet/hyperfleet-adapter

Length of output: 305


🏁 Script executed:

#!/bin/bash
# Check if oapi-codegen is used and where generated code lives
echo "=== Searching for oapi-codegen usage in hyperfleet-api ==="
find . -name "*.mod" -o -name "*.sum" -o -name "*.toml" | xargs grep -l "oapi-codegen" 2>/dev/null || echo "No oapi-codegen found"

echo ""
echo "=== Searching for OpenAPI spec files ==="
find . -name "*.yaml" -o -name "*.yml" -o -name "*.json" | grep -i "openapi\|swagger" | head -10 || echo "No OpenAPI specs found"

echo ""
echo "=== Checking if go-openapi deps are direct or transitive ==="
head -100 go.mod | grep -A5 "require ("

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 1175


🏁 Script executed:

#!/bin/bash
# Check oapi-codegen bingo tooling and its purpose
echo "=== hyperfleet-sentinel .bingo directory ==="
ls -la .bingo/ 2>/dev/null || echo ".bingo not found"

echo ""
echo "=== Checking go.mod for oapi-codegen ==="
grep -n "oapi-codegen" go.mod 2>/dev/null || echo "oapi-codegen not in go.mod"

Repository: openshift-hyperfleet/hyperfleet-sentinel

Length of output: 925


🏁 Script executed:

#!/bin/bash
# Check if hyperfleet-adapter uses generated code or oapi-codegen
echo "=== Searching for oapi-codegen references ==="
find . -type f \( -name "*.mod" -o -name "*.sum" -o -name "Makefile" -o -name "*.sh" \) | xargs grep -l "oapi-codegen" 2>/dev/null || echo "No oapi-codegen references"

echo ""
echo "=== Check go.mod require section ==="
head -80 go.mod | tail -30

Repository: openshift-hyperfleet/hyperfleet-adapter

Length of output: 1768


🏁 Script executed:

#!/bin/bash
# Check what oapi-codegen tool itself pins for go-openapi versions
echo "=== hyperfleet-api .bingo/oapi-codegen.mod ==="
cat .bingo/oapi-codegen.mod

echo ""
echo "=== hyperfleet-api .bingo/oapi-codegen.sum (go-openapi entries) ==="
grep "go-openapi" .bingo/oapi-codegen.sum | head -10

echo ""
echo "=== Check direct vs indirect in main go.mod ==="
echo "Direct requires:"
sed -n '/^require (/,/^)/p' go.mod | grep -i "go-openapi" || echo "None in direct requires"

echo ""
echo "=== Check if swag/jsonpointer come from another direct dependency ==="
grep -n "^require (" go.mod
head -40 go.mod

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 2598


🏁 Script executed:

#!/bin/bash
# Check if openapi.yaml or oapi-codegen.yaml were changed
echo "=== Check OpenAPI spec files ==="
cat openapi/openapi.yaml | head -20

echo ""
echo "=== Check oapi-codegen.yaml config ==="
cat openapi/oapi-codegen.yaml 2>/dev/null || echo "File not found"

echo ""
echo "=== Check if any generated code exists and needs regeneration ==="
find . -type f -name "*.go" -path "*/openapi*" -o -name "*oapi*.go" | head -20

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 1321


🏁 Script executed:

#!/bin/bash
# Check if hyperfleet-sentinel generates code from specs
echo "=== Check if sentinel uses generated openapi code ==="
find . -type f -name "*.go" | xargs grep -l "github.com/oapi-codegen" 2>/dev/null | head -5 || echo "No oapi-codegen usage in generated code found"

echo ""
echo "=== Check .bingo/oapi-codegen.sum vs main go.mod ==="
echo "Codegen tool versions:"
grep "go-openapi" .bingo/oapi-codegen.sum | grep -E "^github" | sort -u

echo ""
echo "Main go.mod versions:"
grep "go-openapi" go.mod || echo "None in main go.mod"

Repository: openshift-hyperfleet/hyperfleet-sentinel

Length of output: 618


🏁 Script executed:

#!/bin/bash
# Check what go-openapi versions oapi-codegen/v2 v2.6.0 actually requires
echo "=== What is in .bingo/oapi-codegen.sum (full go-openapi lines) ==="
grep "go-openapi" .bingo/oapi-codegen.sum

echo ""
echo "=== Check kin-openapi v0.133.0 to understand transitive chain ==="
grep "getkin/kin-openapi" go.sum | head -3

echo ""
echo "=== Full go.sum entries for go-openapi (what was resolved) ==="
grep "go-openapi" go.sum | sort -u

echo ""
echo "=== Which direct dependency brings in go-openapi to main go.mod ==="
# getkin/kin-openapi v0.133.0 likely brings in go-openapi
echo "Checking if generated openapi.gen.go exists and matches current config..."
ls -la pkg/api/openapi/openapi.gen.go 2>/dev/null && echo "Generated code file exists" || echo "Generated code not found"

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 1346


🏁 Script executed:

#!/bin/bash
# Critical check: verify go.mod vs go.sum consistency for these specific packages
echo "=== Go.mod lines 82-83 (as claimed in PR) ==="
sed -n '82,83p' go.mod

echo ""
echo "=== Actual corresponding entries in go.sum ==="
grep "github.com/go-openapi/jsonpointer\|github.com/go-openapi/swag" go.sum

echo ""
echo "=== Check if go.mod has been edited but go.sum not synced ==="
wc -l go.mod go.sum

echo ""
echo "=== Full context: lines 80-95 of go.mod to see the pattern ==="
sed -n '80,95p' go.mod

echo ""
echo "=== Is there a go.mod.backup or recent git history? ==="
git log --oneline -5 go.mod go.sum 2>/dev/null || echo "Git history not available"
</parameter>

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 1869


🏁 Script executed:

#!/bin/bash
# Verify the go.mod/go.sum mismatch is real
echo "=== Check for ALL go-openapi entries in go.sum ==="
grep "go-openapi" go.sum | wc -l
echo "Total entries:"
grep "go-openapi" go.sum

echo ""
echo "=== Check for ALL go-openapi entries in go.mod ==="
grep "go-openapi" go.mod

echo ""
echo "=== Verify this is actually lines 82-83 and not a different location ==="
grep -n "go-openapi" go.mod

echo ""
echo "=== Is the go.sum corrupted or incomplete? Run validation ==="
go mod tidy --dry-run 2>&1 | head -20 || echo "Go command not available"

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 1058


🏁 Script executed:

#!/bin/bash
# Critical discovery: go.mod declares versions not in go.sum
# Let's verify the git history to understand what happened

echo "=== Recent git log for go.mod and go.sum ==="
git log --oneline -10 go.mod go.sum 2>/dev/null || echo "Git not available"

echo ""
echo "=== Check the last commit that touched these files ==="
git log -1 --format="%H %s" -- go.mod 2>/dev/null || echo "Git history unavailable"

echo ""
echo "=== Check if go.sum has entries for v0.23.1 or v0.26.0 anywhere ==="
grep -E "v0.23.1|v0.26.0" go.sum || echo "No v0.23.1 or v0.26.0 found in go.sum"

echo ""
echo "=== What's the git diff status ==="
git status --short go.mod go.sum 2>/dev/null || echo "Git status unavailable"

echo ""
echo "=== Try to see if go.mod changes are staged but uncommitted ==="
git diff go.mod 2>/dev/null | head -30 || echo "No uncommitted changes"
</parameter>

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 662


🏁 Script executed:

#!/bin/bash
# This is critical - go.mod declares versions not in go.sum
# This breaks the build. Let's verify the actual state

echo "=== Git show the actual commit content ==="
git show 887d96c:go.mod 2>/dev/null | sed -n '82,83p' || echo "Cannot access commit"

echo ""
echo "=== Git show go.sum from that commit ==="
git show 887d96c:go.sum 2>/dev/null | grep "go-openapi" || echo "Cannot access go.sum from commit"

echo ""
echo "=== What version of Go is being used? ==="
head -3 go.mod

echo ""
echo "=== Are there any indirect dependencies that would pull these versions? ==="
grep -A2 -B2 "getkin/kin-openapi\|oapi-codegen" go.mod

echo ""
echo "=== Final check: will this build? Test go mod verify ==="
go mod verify 2>&1 || echo "Go mod verify failed - likely indicates sync issue"

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 1313


🏁 Script executed:

#!/bin/bash
# The critical discovery: go.mod declares versions NOT in go.sum
# But go mod verify passes. Let's understand what's actually happening

echo "=== Check go.mod line 82-83 once more ==="
sed -n '82,83p' go.mod

echo ""
echo "=== Now check if kin-openapi v0.133.0 actually REQUIRES these newer versions ==="
# Search upstream to see what kin-openapi depends on
echo "Checking what getkin/kin-openapi v0.133.0 depends on..."
grep -A10 "getkin/kin-openapi v0.133.0" go.sum || echo "Cannot infer from go.sum"

echo ""
echo "=== The real question: are lines 82-83 correct or stale/manual edits? ==="
echo "If go.sum has v0.21.0/v0.23.0 but go.mod declares v0.23.1/v0.26.0,"
echo "this indicates incomplete dependency update (go.mod manually edited without go mod tidy)"

echo ""
echo "=== Verify: what does go mod graph show for these packages? ==="
go mod graph 2>/dev/null | grep "go-openapi" | head -5 || echo "go mod graph unavailable"

echo ""
echo "=== List all indirect requires marked in go.mod ==="
grep "// indirect" go.mod | wc -l
echo "Total indirect: shown above"
</parameter>

Repository: openshift-hyperfleet/hyperfleet-api

Length of output: 2327


go.mod declares versions not present in go.sum — module integrity broken.

Lines 82-83 explicitly require jsonpointer v0.23.1 and swag v0.26.0, but go.sum contains only v0.21.0 and v0.23.0 (transitive from getkin/kin-openapi v0.133.0). This creates a dependency mismatch that breaks reproducible builds. Either run go mod tidy to update go.sum with the new versions, or revert lines 82-83 if the version bump was unintended. Additionally, verify why you're explicitly forcing versions beyond what upstream dependencies require — this introduces unnecessary compatibility risk across HyperFleet repos (sentinel, adapter) that may not expect these newer versions.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@go.mod` around lines 82 - 83, go.mod lists github.com/go-openapi/jsonpointer
v0.23.1 and github.com/go-openapi/swag v0.26.0 but those versions are not
present in go.sum, breaking module integrity; either run `go mod tidy` to update
go.sum (so jsonpointer@v0.23.1 and swag@v0.26.0 are recorded) or revert/remove
the explicit requirements for github.com/go-openapi/jsonpointer and
github.com/go-openapi/swag if the bump was accidental, and while fixing, verify
why these explicit version pins were added (check for compatibility across
consumers like sentinel/adapter) to avoid forcing newer transitive versions
unnecessarily.

@ciaranRoche
Copy link
Copy Markdown
Contributor

Closing: superseded by renovate.json config in #158 (HYPERFLEET-1095). MintMaker will re-create grouped updates on the next Monday cycle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant