Skip to content

Conversation

matejvasek
Copy link
Contributor

Add guideline for private Go module usage

@knative-prow knative-prow bot requested a review from nainaz April 3, 2025 19:11
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 3, 2025
@knative-prow knative-prow bot requested a review from vyasgun April 3, 2025 19:11
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 3, 2025
@matejvasek matejvasek requested review from matzew, gauron99 and lkingland and removed request for nainaz and vyasgun April 3, 2025 19:11
@matejvasek
Copy link
Contributor Author

PTAL @lkingland @gauron99 @matzew

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Copy link

codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.45%. Comparing base (a2469fe) to head (7ca1ccf).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2771      +/-   ##
==========================================
+ Coverage   61.60%   62.45%   +0.84%     
==========================================
  Files         131      131              
  Lines       15770    15770              
==========================================
+ Hits         9715     9849     +134     
+ Misses       5144     4982     -162     
- Partials      911      939      +28     
Flag Coverage Δ
e2e-test 35.36% <ø> (ø)
e2e-test-oncluster 33.73% <ø> (+1.33%) ⬆️
e2e-test-oncluster-runtime 28.14% <ø> (?)
e2e-test-runtime-go 25.68% <ø> (?)
e2e-test-runtime-node 25.11% <ø> (?)
e2e-test-runtime-quarkus 25.19% <ø> (?)
e2e-test-runtime-rust 24.67% <ø> (?)
e2e-test-runtime-springboot 24.72% <ø> (?)
e2e-test-runtime-typescript 25.19% <ø> (?)
integration-tests 48.68% <ø> (+1.81%) ⬆️
unit-tests 48.64% <ø> (?)
unit-tests-macos-latest ?
unit-tests-ubuntu-latest ?
unit-tests-windows-latest ?

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.

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 Apr 4, 2025
Copy link

knative-prow bot commented Apr 4, 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 e720bbc into knative:main Apr 4, 2025
38 checks passed
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
matejvasek added a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
openshift-merge-bot bot pushed a commit to openshift-knative/kn-plugin-func that referenced this pull request Apr 4, 2025
* Fix http port 433 => 443 (knative#2742)

* Trust loopback builders (knative#2750)

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Add testcase for Go private repositories (knative#2748)

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Test adjustments (knative#2751)

* Use tiny instead of base BP builder.
* Decrease minimal required Go version.
* Make the self-signed certificate CA==true so it works with update-ca-trust utility.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Allow host mounts for build phahse (knative#2753)

* Allow host mounts for build pahse.

This is in particular useful for using paket bindings,
e.g. to inject git credentials into build process.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Mark test as a integration test

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Use s2i in standard mode, not "as-dockerfile" (knative#2764)

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* fixup cherry-pick

The release-v1.16 branch uses older docker library version some minor
adjusment was needed.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Improvements for Go s2i assembler (knative#2765)

* Return error code when compilation was not done
* Run `go mod tidy` on scaffoded code

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* S2I (source-to-image) host binds (knative#2766)

* Added tests for s2i build with private Go module

The test is for now skipped since host binds are not yet implemented for s2i.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* User "host" network mode for s2i build on Linux

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Implement host binds for local s2i build

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Make build binds more similar to runtime binds (knative#2768)

* Make build binds more similar to runtime binds

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Added comments on struct

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Add guideline for private Go module usage (knative#2771)

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>

* Fix: Go scaffolding uses correct module name (knative#2769)

* Fix: Go scaffolding uses correct module name

Using incorrect name works for a functions with flat structure -- no
sub-packages. When sub-packages are used we need to refer the user
module by its true name.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup tests

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup for c841f40

Signed-off-by: Matej Vašek <matejvasek@gmail.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants