-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vendor dependencies when running code generators. (#314)
Uses `go mod vendor` to vendor code-generation dependencies. Goal were: 1. Use the same version of code-generator that knative uses. 2. Because of 1., remove all sed hacks when generating code 3. (Still to test) fix our code incompatibility with watchers Solution was: 1. enforce go mod vendor by using replace directives in go.mod to bin k8s.io dependencies as close as we could to k8s version 1.12.9: the version used by knative/pkg and knative/serving. 2. Update our scripts to utilize the vendor direcotry 3. Because go mod vendor does not down;pad scripts, we download the code generation scripts manually. This makes me sad. Other considerations: 1. Dep cannot be used because we need 2 different versions of knative/pkg, because of our dependency on knative build. Once we move to tekton we might be able to switch to dep, making us more consistent with knative. Side effects were: 1. the go mod cache cannot be used with vendored dependencies, causing a massive slowdown in the generation script.
- Loading branch information
1 parent
8e7d13b
commit 15c95d6
Showing
26 changed files
with
360 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
bin | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
|
||
set -eux | ||
|
||
hack/setup-codegen.sh | ||
hack/update-codegen.sh | ||
|
||
if [ ! -z "$(git status --porcelain)" ]; then | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.