This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* * Fix #16 Resolve all deps inside containerized build - Refactored Dockerfile to build a plugin in a container - Add a comment to the merged `go.mod` file which contains the GlooE version - Copy the go.mod file to the final layer so developers can download it after a succesful build. - If the build fails during the `build-plugins` phase the usesd `go.mod` wil be printed to stdout for analysis. - Changed the `build-plugins` rule to run local. - Added `build` rule to run all other targets in a container * Fix #22 Improve scripts to auto-upgrade go.mod based on gloo dependencies - Removed public compare-deps code. - Refactored and keep the private compare_dep code as a final check after merging the module files. - If there are non matching deps, print the suggestions to stdout and abort, otherwise overwrite the go.mod - Created `resolve-deps` rule to merge non matching dependencies to plugin's go.mod Using the following merge strategy: - Use plugin.mod as base - In plugin.mod, copy all matching require names and version from gloo.mod - In plugin.mod, copy all matching replace names with version from gloo.mod, where plugin's replace has a version defined - In plugin.mod, remove all replace entries which has the matching require name in gloo.mod * Added tmp to ignore list * Added/updated tests * Updated documentation * The go-control-plane not required in the go.mod. * Made the run image configurable * Added changelog for breaking change * Changed changelog type * Changed changelog * Removed redundant arguments * Removed redundant arguments * Use the right dep version for impl.go * processed review comments * Update cloudbuild * fixed: #23 (comment) * fixed: - #23 (comment) - #23 (comment) * rework: - #23 (comment) * Ensure env vars are being picked up in build command, as makefile runs each line in target in its own shell subprocess * Go mod tidy * Some fixes to ensure the verify script runs during container build process * Fix runtime plugin mismatch by ensuring unquoted gc flags get passed to build command, also update to later GlooE (unrelated) * Update go.mod and go.sum so plugin can be loaded succesffuly * Run resolve deps * Go mod tidy * - Verify ARGs are set - run verify script from Makefile - Parmaterized the plugin build name and folder * - go mod tidy * - Cleanup variable - Made variable configurable * - Updated and rearranged docs * - Updated and rearranged docs * - Updated and rearranged docs - Renamed var * Minor correctness updates * Minor cleanups * Fix for older versions of GlooE (1.3.3 and older). Will need to add some special logic to support go module builds * Bump default GlooE version to 1.3.8 * Getting go build image is a prereq to being able to docker build, since we need to know base image * Shouldn't need to copy over current directory, since go mod vendor is in the make target now * Allow setting env vars to build both new and old versions of Gloo plugins * Less strict pre-reqs for targets * Fix make target for tests * Update readme to reflect changes * Better style to have tests in different package than the code it's testing * Remove commented out code * Write script to determine gloo build mode * Go mod tidy and goimports * No need for working directory passthrough * Codify GlooE version to build mode logic -- all we need to provide is GlooE version now to make build * Update cloudbuild to reflect new target name
- Loading branch information