-
Notifications
You must be signed in to change notification settings - Fork 174
refactor: Extract scaffolding as per-builder, new buildpacks default builder and sync Go version #3237
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
base: main
Are you sure you want to change the base?
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauron99 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3237 +/- ##
==========================================
- Coverage 55.10% 54.95% -0.16%
==========================================
Files 170 173 +3
Lines 19963 20005 +42
==========================================
- Hits 11001 10993 -8
- Misses 7883 7930 +47
- Partials 1079 1082 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
73ce011 to
f310b09
Compare
5295030 to
8161b74
Compare
e6a1586 to
cc15a7d
Compare
cc15a7d to
31ad9d7
Compare
31ad9d7 to
86e4281
Compare
86e4281 to
23e8f85
Compare
ce62664 to
2c7bfb0
Compare
5a7d5ea to
5d2557d
Compare
6d03f1d to
2e3fa69
Compare
2e3fa69 to
50b3762
Compare
50b3762 to
463d43f
Compare
| var DefaultBaseBuilder = "ghcr.io/knative/builder-jammy-base:latest" | ||
| var DefaultTinyBuilder = "ghcr.io/knative/builder-jammy-tiny:latest" | ||
| var DefaultBaseBuilder = "ghcr.io/knative/builder-jammy-base:v2" | ||
| var DefaultTinyBuilder = "ghcr.io/knative/builder-jammy-tiny:v2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introducing this default switch. The v2 no longer contains the good&old custom buildpack for go.
| // set scaffolding path to buildpacks builder | ||
| if f.Runtime == "go" { | ||
| opts.Env["BP_GO_WORKDIR"] = ".func/build" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the magic for buildpacks now as part of buildpacks package (replaces custom buildpack)
| } | ||
|
|
||
| // TestBuilder_Concurrency | ||
| func TestBuilder_Concurrency(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build concurrency functionality etc is part of followup PR
| // add BP_GO_WORKDIR for go-build buildpack | ||
| if f.Runtime == "go" { | ||
| buildEnvs = append(buildEnvs, "BP_GO_WORKDIR=.func/build") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again; magic for on-cluster bp build too
463d43f to
ab44dea
Compare
Scaffolding unification
client.Scaffoldstep in build,deploy,run commandsScaffolderstructs)New scaffolders
HOST builder changes
scaffolding file parsing
golang.org/x/mod/modfile// issue: remove custom buildpack for go, unify scaffolding
/fixes #3005
// issue: double go bin download for pack
/fixes #3178
Follow-ups