Skip to content

Fix non-containerized build/run with external deps #2847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025

Conversation

matejvasek
Copy link
Contributor

@matejvasek matejvasek commented May 28, 2025

Changes

Fix non-containerized build/run with external deps.
It's necessary to call "go mod tidy" on scaffolded code.

fixes #2846

/kind bug

fix: non-containerized build/run with external dependencies

It's necessary to call "go mod tidy" on scaffolded code.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
@knative-prow knative-prow bot added the kind/bug Categorizes issue or PR as related to a bug. label May 28, 2025
@matejvasek matejvasek requested a review from lkingland May 28, 2025 12:59
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 28, 2025
@knative-prow knative-prow bot requested review from dsimansk and nainaz May 28, 2025 12:59
@knative-prow knative-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 28, 2025
@matejvasek matejvasek requested review from matzew, jrangelramos and gauron99 and removed request for dsimansk and nainaz May 28, 2025 12:59
@@ -124,6 +123,20 @@ func runGo(ctx context.Context, job *Job) (err error) {
return
}

// Build
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Diff is little bit confusing here, the code below is actually not added code, but the old code.
The code above that looks unchanged is the actual addition here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

difftastic IS AWESOME!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot from 2025-05-28 15-07-56

Copy link

codecov bot commented May 28, 2025

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.

Project coverage is 63.46%. Comparing base (3150fed) to head (f4940a6).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/functions/runner.go 76.92% 2 Missing and 1 partial ⚠️
pkg/oci/go_builder.go 70.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2847      +/-   ##
==========================================
+ Coverage   60.93%   63.46%   +2.53%     
==========================================
  Files         127      127              
  Lines       15549    15570      +21     
==========================================
+ Hits         9475     9882     +407     
+ Misses       5187     4746     -441     
- Partials      887      942      +55     
Flag Coverage Δ
e2e-tests 43.62% <43.47%> (+1.47%) ⬆️
integration-tests 49.44% <30.43%> (?)
unit-tests 49.55% <73.91%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@matejvasek
Copy link
Contributor Author

PTAL @jrangelramos @gauron99

@jrangelramos
Copy link
Contributor

fixes #2846

@matejvasek
Copy link
Contributor Author

PTAL @lkingland

Copy link
Member

@lkingland lkingland left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 28, 2025
Copy link

knative-prow bot commented May 28, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lkingland, matejvasek

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [lkingland,matejvasek]

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

@knative-prow knative-prow bot merged commit 22e4f6d into knative:main May 28, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

func run --container=false fails for go with external modules
3 participants