Skip to content

[release-1.28] Fix make gen errors when vendor folder is present#1359

Merged
istio-testing merged 1 commit intoistio-ecosystem:release-1.28from
istio-testing:cherry-pick-1348-to-release-1.28
Nov 18, 2025
Merged

[release-1.28] Fix make gen errors when vendor folder is present#1359
istio-testing merged 1 commit intoistio-ecosystem:release-1.28from
istio-testing:cherry-pick-1348-to-release-1.28

Conversation

@istio-testing
Copy link
Copy Markdown
Collaborator

This is an automated cherry-pick of #1348

When vendor mode is enabled in this project, the command "go list"
can return an empty string, causing errors while running "make gen"
command. This PR modifies the command to use "-mod=readonly" which
ensures the Go command properly resolves the module directory even
when vendoring is in use.

Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.73%. Comparing base (818e2ae) to head (3096b82).
⚠️ Report is 3 commits behind head on release-1.28.

❗ There is a different number of reports uploaded between BASE (818e2ae) and HEAD (3096b82). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (818e2ae) HEAD (3096b82)
2 1
Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.28    #1359      +/-   ##
================================================
- Coverage         80.38%   70.73%   -9.65%     
================================================
  Files                44       39       -5     
  Lines              2299     2040     -259     
================================================
- Hits               1848     1443     -405     
- Misses              330      429      +99     
- Partials            121      168      +47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bmangoen
Copy link
Copy Markdown
Contributor

/test unit-tests

@istio-testing istio-testing merged commit fcda57e into istio-ecosystem:release-1.28 Nov 18, 2025
17 of 19 checks passed
rafaelvzago pushed a commit to rafaelvzago/sail-operator that referenced this pull request Jan 22, 2026
When vendor mode is enabled in this project, the command "go list"
can return an empty string, causing errors while running "make gen"
command. This PR modifies the command to use "-mod=readonly" which
ensures the Go command properly resolves the module directory even
when vendoring is in use.

Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
Co-authored-by: Sridhar Gaddam <sgaddam@redhat.com>
Signed-off-by: Rafael Zago <rafaelvzago@gmail.com>
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.

3 participants