Commit Graph

12 Commits

Author SHA1 Message Date
Scott Nichols 7ba58ca471
use the new hack repo. (#4410)
* use the new hack repo.

* lint
2020-10-27 16:47:34 -07:00
Navid Shaikh 19641a5762
Check go.mod in codegen verification (#3087)
* Check go.mod in codegen verification

 Verifies if go.mod is up to date in build tests

* Copy go.mod in diffroot for comparison
2020-05-06 12:58:45 -07:00
Scott Nichols f355830c4d
Update to go mod (#3061)
* 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>
2020-04-28 14:02:42 -07:00
chaodaiG 67212104cd Use knative.dev/test-infra (#1604) 2019-07-31 08:57:44 -07:00
Dave Protasowski 30fff490dc check the VENDOR-LICENSE, Gopkg.lock and vendor as part of verification (#546)
* 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
2018-10-24 06:12:31 -07:00
Scott Nichols c336e3f8a3 Ask env for preferred bash path. (#539) 2018-10-22 19:46:31 -07:00
Adriano Cunha 63da800731 Vendor the test-infra scripts (#394)
* 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.
2018-08-26 08:45:02 -07:00
Adriano Cunha ee7dbe4642 Remove local library.sh as all helpers are now in prow-tests image (#258)
* 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
2018-07-22 08:15:34 -07:00
Adriano Cunha 2920ab610e Make verify-codegen.sh not mess up with working tree (#239)
`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;
2018-07-19 18:58:32 -07:00
Matt Moore 1f895cb4e0 Switch Copyright headers to `The Knative Authors`. (#115) 2018-06-25 17:31:21 -07:00
Adriano Cunha 06548a8663 Also verify generated code in build tests (#97) 2018-06-20 15:48:18 -07:00
Ville Aikas 9b0495c6f8 first release (#1)
LGTM
2018-03-13 14:26:10 -07:00