Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/keyvaluetags: Use build constraint with custom implementatio…
…n files, add gencheck Makefile target and add to CI (#11638) * Move custom service-specific functions to own package. This ensures that `make gen` succeeds. * Add 'gen' to 'test' and 'testacc' targets. * Revert "Add 'gen' to 'test' and 'testacc' targets." This reverts commit 2e6008bbe4c1e33ad6ed4dc08019e207cd29939e. * Revert "Move custom service-specific functions to own package." This reverts commit 2d050db0cf29919336f9b1b1898856601763403b. * Use build constraints to prevent 'go generate' errors with custom keyvaluetags implementations. * Add 'gencheck' build target. If there are differences we get an error like: % make gencheck ==> Checking generated source code... rm -f aws/internal/keyvaluetags/*_gen.go go generate ./... GNUmakefile | 6 ++++++ 1 file changed, 6 insertions(+) Unexpected difference in directories after code generation. Run 'make gen' command and commit. make: *** [gencheck] Error 1 If there are no differences: % make gencheck ==> Checking generated source code... rm -f aws/internal/keyvaluetags/*_gen.go go generate ./... * Run 'make gencheck' during Travis Code UnitTest pass.
- Loading branch information