* Switch to go modules: checkpoint
go mod init knative.dev/eventing
Replace pkg with go mod enabled fork
Update cloudevents/sdk-go import paths
go mod tidy
go mod vendor
update hack/update-deps.sh and hack/update-codegen.sh
add hack/tools.sh
update test/presubmit-tests.sh
* adding new gen and dep files.
* update to cloudevents RC2
* update to pkg.
Co-authored-by: Grant Rodgers <grantrodgers@google.com>
* check the vendor-license as part of verification
* ensure Gopkg.lock & vendor are stable after verification
* sort the folders to verify
* don't deref symlinks
* Vendor the test-infra scripts
* shared scripts from test-infra live in //vendor/github.com/knative/test-infra/scripts;
* update `update-deps.sh` to keep only the scripts folder;
* all bash scripts were updated to use the vendored scripts;
Bonus: use `check_licenses()` from `library.sh`, this will transparently handle the installation of `dep-collector` (if necessary).
Part of knative/test-infra#30.
* Make verify-codegen.sh compatible with OS X
OS X's `mktemp` has no `-p` flag.
* Remove local library.sh as all helpers are now in prow-tests image
We're consolidating the test infrastructure into a single place, so all repos get the same fixes, updates and new features.
`library.sh` in prow-tests image was implemented by knative/test-infra#4
* Fix environment variable name
`verify-codegen.sh` calls `update-codegen.sh` (which in turns calls `update-deps.sh`) to autogenerate new code, so it can diff the current code in the working tree against the latest autogenerated code (and thus check if everything is up-to-date).
This might leave the working tree in a changed state. This PR undoes all changes to `//pkg`, `//vendor` and `Gopkg.lock` that might be caused by the `update-*.sh` scripts. This way, when running `verify-codegen.sh`, it's guaranteed that your working tree is untouched when the script finishes, as expected.
Bonuses:
* remove redundant environment variables;
* use `library.sh` for common/shared stuff, just like the other scripts;
* restrict diffing to `//pkg` and copying to relevant packages, to speed up the process;