From e6907534d10aaf546356378ee11a9f1072f98b2f Mon Sep 17 00:00:00 2001 From: Bartlomiej Plotka Date: Sat, 8 Oct 2022 11:17:52 +0200 Subject: [PATCH] Rewritten tests to use mocked module; prepare for 0.7 release (#122) * Pin to max Go 1.18 for now for Go mod files. Signed-off-by: bwplotka * Moving to new tests. Signed-off-by: bwplotka * Fix. Signed-off-by: bwplotka Signed-off-by: bwplotka --- .bingo/benchstat-e.tmp.sum | 98 ++ .github/workflows/go.yaml | 2 +- README.md | 2 +- get.go | 67 +- get_e2e_test.go | 1332 ++++++----------- get_e2e_utils_test.go | 27 +- get_test.go | 4 +- go.mod | 13 +- go.sum | 26 +- main.go | 4 +- pkg/bingo/helpers.go | 2 +- pkg/bingo/mod.go | 20 +- pkg/bingo/mod_test.go | 2 +- pkg/envars/eval.go | 2 +- pkg/envars/eval_test.go | 2 +- pkg/gomodcache/cache.go | 65 - pkg/makefile/parser.go | 2 +- pkg/runner/runner.go | 10 +- pkg/runner/runner_test.go | 6 +- pkg/version/version.go | 2 +- testdata/Makefile | 21 +- testdata/go.mod | 4 +- testdata/go.sum | 5 +- testdata/main.go | 2 +- testdata/module/buildable/main.go | 22 - testdata/module/buildable2/main.go | 22 - testdata/module/go.mod | 8 - testdata/module/go.sum | 4 - testdata/module/not-buildable/main.go | 21 - testdata/module/not-buildable2/main.go | 21 - testdata/module/yolo.go | 12 - .../module_with_replace/buildable/main.go | 23 - .../module_with_replace/buildable2/main.go | 23 - testdata/module_with_replace/go.mod | 10 - testdata/module_with_replace/go.sum | 5 - .../module_with_replace/not-buildable/main.go | 22 - .../not-buildable2/main.go | 22 - testdata/module_with_replace/yolo.go | 14 - .../.bingo/README.md | 22 - .../.bingo/Variables.mk | 75 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/faillint.mod | 8 - .../.bingo/go-bindata.mod | 5 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 13 - .../.bingo/Variables.mk | 65 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 8 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 12 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 13 - .../.bingo/Variables.mk | 65 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 8 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 16 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 13 - .../.bingo/Variables.mk | 65 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 8 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 20 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 13 - .../.bingo/Variables.mk | 65 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 8 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 20 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 13 - .../.bingo/Variables.mk | 65 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 8 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 20 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/Variables.mk | 67 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 5 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 24 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 14 - .../.bingo/Variables.mk | 67 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 5 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 24 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 14 - .../.bingo/Variables.mk | 67 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 5 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 24 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 14 - .../.bingo/Variables.mk | 67 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 5 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 24 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 14 - .../.bingo/Variables.mk | 67 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 5 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 24 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/.gitignore | 12 - .../.bingo/README.md | 14 - .../.bingo/Variables.mk | 67 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable_old.mod | 5 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.mod | 5 - .../.bingo/faillint.mod | 5 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 24 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/README.md | 14 - .../.bingo/Variables.mk | 67 - .../.bingo/buildable.mod | 5 - .../.bingo/buildable.sum | 8 - .../.bingo/buildable2.mod | 5 - .../.bingo/buildable2.sum | 6 - .../.bingo/buildable_old.mod | 5 - .../.bingo/buildable_old.sum | 8 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.1.sum | 15 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.2.sum | 14 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.3.sum | 15 - .../.bingo/f2.mod | 5 - .../.bingo/f2.sum | 16 - .../.bingo/faillint.mod | 5 - .../.bingo/faillint.sum | 20 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go-bindata.sum | 2 - .../.bingo/go.mod | 1 - .../.bingo/variables.env | 24 - .../.bingo/wr_buildable.mod | 7 - .../.bingo/wr_buildable.sum | 8 - .../.bingo/Variables.mk | 70 +- .../.bingo/buildable-v2.mod | 5 + .../.bingo/buildable-v2.sum | 4 + .../.bingo/buildable-withReplace.mod | 9 + .../.bingo/buildable-withReplace.sum | 4 + .../.bingo/buildable.1.mod} | 4 +- .../.bingo/buildable.1.sum | 4 + .../.bingo/buildable.2.mod} | 4 +- .../.bingo/buildable.2.sum | 4 + .../.bingo/buildable.mod | 4 +- .../.bingo/buildable.sum | 11 +- .../.bingo/buildable2.mod | 4 +- .../.bingo/buildable2.sum | 8 +- .../.bingo/buildable_old.mod | 5 - .../.bingo/buildable_old.sum | 8 - .../.bingo/f2.1.mod | 5 - .../.bingo/f2.1.sum | 15 - .../.bingo/f2.2.mod | 5 - .../.bingo/f2.2.sum | 14 - .../.bingo/f2.3.mod | 5 - .../.bingo/f2.3.sum | 15 - .../testproject_with_bingo_v0_6/.bingo/f2.mod | 5 - .../testproject_with_bingo_v0_6/.bingo/f2.sum | 16 - .../.bingo/faillint.mod | 5 - .../.bingo/faillint.sum | 20 - .../.bingo/go-bindata.mod | 5 - .../.bingo/go-bindata.sum | 2 - .../.bingo/variables.env | 14 +- .../.bingo/wr_buildable.mod | 7 - .../.bingo/wr_buildable.sum | 8 - .../.bingo/.gitignore | 0 .../.bingo/README.md | 0 .../.bingo/Variables.mk | 47 + .../.bingo/buildable-v2.mod | 5 + .../.bingo/buildable-v2.sum | 4 + .../.bingo/buildable-withReplace.mod | 9 + .../.bingo/buildable-withReplace.sum | 4 + .../.bingo/buildable.1.mod} | 4 +- .../.bingo/buildable.1.sum | 4 + .../.bingo/buildable.2.mod} | 4 +- .../.bingo/buildable.2.sum | 4 + .../.bingo/buildable.mod | 5 + .../.bingo/buildable.sum | 7 + .../.bingo/buildable2.mod | 5 + .../.bingo/buildable2.sum | 4 + .../.bingo/go.mod | 0 .../.bingo/variables.env | 18 + 281 files changed, 838 insertions(+), 3750 deletions(-) create mode 100644 .bingo/benchstat-e.tmp.sum delete mode 100644 pkg/gomodcache/cache.go delete mode 100644 testdata/module/buildable/main.go delete mode 100644 testdata/module/buildable2/main.go delete mode 100644 testdata/module/go.mod delete mode 100644 testdata/module/go.sum delete mode 100644 testdata/module/not-buildable/main.go delete mode 100644 testdata/module/not-buildable2/main.go delete mode 100644 testdata/module/yolo.go delete mode 100644 testdata/module_with_replace/buildable/main.go delete mode 100644 testdata/module_with_replace/buildable2/main.go delete mode 100644 testdata/module_with_replace/go.mod delete mode 100644 testdata/module_with_replace/go.sum delete mode 100644 testdata/module_with_replace/not-buildable/main.go delete mode 100644 testdata/module_with_replace/not-buildable2/main.go delete mode 100644 testdata/module_with_replace/yolo.go delete mode 100755 testdata/testproject_with_bingo_v0_1_1/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_1_1/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_1_1/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_1_1/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_1_1/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_1_1/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_1_1/.bingo/go-bindata.mod delete mode 100644 testdata/testproject_with_bingo_v0_1_1/.bingo/wr_buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/.gitignore delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/go-bindata.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_2_0/.bingo/wr_buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/.gitignore delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/go-bindata.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_2_1/.bingo/wr_buildable.mod delete mode 100755 testdata/testproject_with_bingo_v0_2_2/.bingo/.gitignore delete mode 100755 testdata/testproject_with_bingo_v0_2_2/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/go-bindata.mod delete mode 100755 testdata/testproject_with_bingo_v0_2_2/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_2_2/.bingo/wr_buildable.mod delete mode 100755 testdata/testproject_with_bingo_v0_2_3/.bingo/.gitignore delete mode 100755 testdata/testproject_with_bingo_v0_2_3/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/go-bindata.mod delete mode 100755 testdata/testproject_with_bingo_v0_2_3/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_2_3/.bingo/wr_buildable.mod delete mode 100755 testdata/testproject_with_bingo_v0_2_4/.bingo/.gitignore delete mode 100755 testdata/testproject_with_bingo_v0_2_4/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/go-bindata.mod delete mode 100755 testdata/testproject_with_bingo_v0_2_4/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_2_4/.bingo/wr_buildable.mod delete mode 100755 testdata/testproject_with_bingo_v0_3_0/.bingo/.gitignore delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/go-bindata.mod delete mode 100755 testdata/testproject_with_bingo_v0_3_0/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_3_0/.bingo/wr_buildable.mod delete mode 100755 testdata/testproject_with_bingo_v0_3_1/.bingo/.gitignore delete mode 100755 testdata/testproject_with_bingo_v0_3_1/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/go-bindata.mod delete mode 100755 testdata/testproject_with_bingo_v0_3_1/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_3_1/.bingo/wr_buildable.mod delete mode 100755 testdata/testproject_with_bingo_v0_3_2/.bingo/.gitignore delete mode 100755 testdata/testproject_with_bingo_v0_3_2/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/go-bindata.mod delete mode 100755 testdata/testproject_with_bingo_v0_3_2/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_3_2/.bingo/wr_buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/.gitignore delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/go-bindata.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_4_1/.bingo/wr_buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/.gitignore delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/go-bindata.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_4_2/.bingo/wr_buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/.gitignore delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/go-bindata.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_4_3/.bingo/wr_buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/README.md delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/Variables.mk delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/buildable.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/buildable2.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/buildable2.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/buildable_old.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/f2.1.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/f2.2.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/f2.3.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/f2.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/faillint.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/go-bindata.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/go-bindata.sum delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/go.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/variables.env delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/wr_buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_5_2/.bingo/wr_buildable.sum create mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/buildable-v2.mod create mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/buildable-v2.sum create mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/buildable-withReplace.mod create mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/buildable-withReplace.sum rename testdata/{testproject_with_bingo_v0_1_1/.bingo/f2.1.mod => testproject_with_bingo_v0_6/.bingo/buildable.1.mod} (51%) create mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/buildable.1.sum rename testdata/{testproject_with_bingo_v0_1_1/.bingo/f2.2.mod => testproject_with_bingo_v0_6/.bingo/buildable.2.mod} (51%) create mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/buildable.2.sum delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/buildable_old.mod delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/buildable_old.sum delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/f2.1.mod delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/f2.1.sum delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/f2.2.mod delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/f2.2.sum delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/f2.3.mod delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/f2.3.sum delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/f2.mod delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/f2.sum delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/faillint.mod delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/faillint.sum delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/go-bindata.mod delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/go-bindata.sum delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/wr_buildable.mod delete mode 100644 testdata/testproject_with_bingo_v0_6/.bingo/wr_buildable.sum rename testdata/{testproject_with_bingo_v0_5_2 => testproject_with_bingo_v0_7}/.bingo/.gitignore (100%) rename testdata/{testproject_with_bingo_v0_3_0 => testproject_with_bingo_v0_7}/.bingo/README.md (100%) mode change 100755 => 100644 create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/Variables.mk create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable-v2.mod create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable-v2.sum create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable-withReplace.mod create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable-withReplace.sum rename testdata/{testproject_with_bingo_v0_1_1/.bingo/f2.3.mod => testproject_with_bingo_v0_7/.bingo/buildable.1.mod} (51%) create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable.1.sum rename testdata/{testproject_with_bingo_v0_1_1/.bingo/f2.mod => testproject_with_bingo_v0_7/.bingo/buildable.2.mod} (51%) create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable.2.sum create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable.mod create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable.sum create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable2.mod create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/buildable2.sum rename testdata/{testproject_with_bingo_v0_1_1 => testproject_with_bingo_v0_7}/.bingo/go.mod (100%) mode change 100755 => 100644 create mode 100644 testdata/testproject_with_bingo_v0_7/.bingo/variables.env diff --git a/.bingo/benchstat-e.tmp.sum b/.bingo/benchstat-e.tmp.sum new file mode 100644 index 0000000..8e2dde7 --- /dev/null +++ b/.bingo/benchstat-e.tmp.sum @@ -0,0 +1,98 @@ +cloud.google.com/go v0.0.0-20170206221025-ce650573d812/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/GoogleCloudPlatform/cloudsql-proxy v0.0.0-20190129172621-c8b1d7a94ddf/go.mod h1:aJ4qN3TfrelA6NZ6AXsXRfmEVaYin3EDbSPJrKS8OXo= +github.com/aclements/go-gg v0.0.0-20170118225347-6dbb4e4fefb0/go.mod h1:55qNq4vcpkIuHowELi5C8e+1yUHtoLoOUR9QU5j7Tes= +github.com/aclements/go-moremath v0.0.0-20210112150236-f10218a38794/go.mod h1:7e+I0LQFUI9AXWxOfsQROs9xPhoJtbsyWcjJqDd4KPY= +github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= +github.com/ajstarks/svgo v0.0.0-20210923152817-c3b6e2f0c527/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= +github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/boombuler/barcode v1.0.1/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g= +github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks= +github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= +github.com/go-fonts/liberation v0.2.0/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY= +github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U= +github.com/go-latex/latex v0.0.0-20210823091927-c0d11ff05a81/go.mod h1:SX0U8uGpxhq9o2S/CELCSUxEWWAuoCUcVCQWv7G2OCk= +github.com/go-pdf/fpdf v0.5.0/go.mod h1:HzcnA+A23uwogo0tp9yU+l3V+KXhiESpt1PMayhOh5M= +github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/gonum/blas v0.0.0-20181208220705-f22b278b28ac/go.mod h1:P32wAyui1PQ58Oce/KYkOqQv8cVw1zAapXOl+dRFGbc= +github.com/gonum/floats v0.0.0-20181209220543-c233463c7e82/go.mod h1:PxC8OnwL11+aosOB5+iEPoV3picfs8tUpkVd0pDo+Kg= +github.com/gonum/internal v0.0.0-20181124074243-f884aa714029/go.mod h1:Pu4dmpkhSyOzRwuXkOgAvijx4o+4YMUJJo9OvPYMkks= +github.com/gonum/lapack v0.0.0-20181123203213-e4cdc5a0bff9/go.mod h1:XA3DeT6rxh2EAE789SSiSJNqxPaC0aE9J8NTOI0Jo/A= +github.com/gonum/matrix v0.0.0-20181209220409-c518dec07be9/go.mod h1:0EXg4mc1CNP0HCqCz+K4ts155PXIlUywf0wqN+GfPZw= +github.com/google/safehtml v0.0.2 h1:ZOt2VXg4x24bW0m2jtzAOkhoXV0iM8vNKc0paByCZqM= +github.com/google/safehtml v0.0.2/go.mod h1:L4KWwDsUJdECRAEpZoBn3O64bQaywRscowZjJAzjHnU= +github.com/googleapis/gax-go v0.0.0-20161107002406-da06d194a00e/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY= +github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= +github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= +github.com/mattn/go-sqlite3 v1.14.5/go.mod h1:WVKg1VTActs4Qso6iwGbiFih2UIHo0ENGwNd0Lj+XmI= +github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY= +github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= +github.com/phpdave11/gofpdi v1.0.13/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w= +github.com/ruudk/golang-pdf417 v0.0.0-20201230142125-a7e3863a1245/go.mod h1:pQAZKsJ8yyVxGRWYNEm9oFB8ieLgKFnamEyDmSA0BRk= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE= +golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/image v0.0.0-20210607152325-775e3b0c77b9/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/image v0.0.0-20210628002857-a66eb6448b8d/go.mod h1:023OzeP/+EPmXeapQh35lcL3II3LrY8Ic+EFFKVhULM= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/oauth2 v0.0.0-20170207211851-4464e7848382/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/perf v0.0.0-20220920022801-e8d778a60d07 h1:LhnzFL4oipoFsDvxTy2IJRHgOlnGzB2dE5l7C4PN7bg= +golang.org/x/perf v0.0.0-20220920022801-e8d778a60d07/go.mod h1:UBKtEnL8aqnd+0JHqZ+2qoMDwtuy6cYhhKNoHLBiTQc= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= +gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= +gonum.org/v1/gonum v0.9.3/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0= +gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= +gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= +gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY= +gonum.org/v1/plot v0.10.0/go.mod h1:JWIHJ7U20drSQb/aDpTetJzfC1KlAPldJLpkSy88dvQ= +google.golang.org/api v0.0.0-20170206182103-3d017632ea10/go.mod h1:4mhQ8q/RsB7i+udVvVy5NUi08OU8ZlA0gRVgrF7VFY0= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/grpc v0.0.0-20170208002647-2a6bf6142e96/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index ba43872..e41f9ae 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -34,7 +34,7 @@ jobs: strategy: fail-fast: false matrix: - go: ['1.17.x', '1.18.x'] + go: ['1.17.x', '1.18.x', '1.19.x'] platform: [ubuntu-latest, macos-latest] name: Unit tests on Go ${{ matrix.go }} ${{ matrix.platform }} diff --git a/README.md b/README.md index 8578313..e813810 100644 --- a/README.md +++ b/README.md @@ -267,7 +267,7 @@ For detailed examples and documentation see: https://github.com/bwplotka/bingo Commands: - get [[@version1 or none,version2,version3...]] + get [[@version1,none,latest,version2,version3...]] -go string Path to the go command. (default "go") diff --git a/get.go b/get.go index 3602554..4704d7f 100644 --- a/get.go +++ b/get.go @@ -7,7 +7,6 @@ import ( "bufio" "context" "fmt" - "io/ioutil" "log" "os" "path" @@ -21,8 +20,8 @@ import ( "github.com/bwplotka/bingo/pkg/bingo" "github.com/bwplotka/bingo/pkg/runner" "github.com/bwplotka/bingo/pkg/version" - "github.com/efficientgo/tools/core/pkg/errcapture" - "github.com/pkg/errors" + "github.com/efficientgo/core/errcapture" + "github.com/efficientgo/core/errors" "golang.org/x/mod/module" ) @@ -48,11 +47,11 @@ func parseTarget(rawTarget string) (name string, pkgPath string, versions []stri dup := map[string]struct{}{} for _, v := range versions { if _, ok := dup[v]; ok { - return "", "", nil, errors.Errorf("version duplicates are not allowed, got: %v", versions) + return "", "", nil, errors.Newf("version duplicates are not allowed, got: %v", versions) } dup[v] = struct{}{} if v == "none" { - return "", "", nil, errors.Errorf("none is not allowed when there are more than one specified Version, got: %v", versions) + return "", "", nil, errors.Newf("none is not allowed when there are more than one specified Version, got: %v", versions) } } } @@ -162,10 +161,10 @@ func get(ctx context.Context, logger *log.Logger, c getConfig, rawTarget string) if c.rename != "" { // Treat rename specially. if pkgPath != "" { - return errors.Errorf("-r rename has to reference installed tool by name not path, got: %v", pkgPath) + return errors.Newf("-r rename has to reference installed tool by name not path, got: %v", pkgPath) } if versions[0] != "" || len(versions) > 1 { - return errors.Errorf("-r rename cannot take version arguments (string after @), got %v", versions) + return errors.Newf("-r rename cannot take version arguments (string after @), got %v", versions) } if err := validateNewName(versions, name, c.rename); err != nil { return errors.Wrap(err, "-r") @@ -175,7 +174,7 @@ func get(ctx context.Context, logger *log.Logger, c getConfig, rawTarget string) return errors.Wrapf(err, "existing mod files for %v", c.rename) } if len(newExisting) > 0 { - return errors.Errorf("found existing installed binaries %v under name you want to rename on. Remove target name %s or use different one", newExisting, c.rename) + return errors.Newf("found existing installed binaries %v under name you want to rename on. Remove target name %s or use different one", newExisting, c.rename) } existing, err := existingModFiles(c.modDir, name) @@ -184,7 +183,7 @@ func get(ctx context.Context, logger *log.Logger, c getConfig, rawTarget string) } if len(existing) == 0 { - return errors.Errorf("nothing to rename, tool %v not installed", name) + return errors.Newf("nothing to rename, tool %v not installed", name) } targets := make([]bingo.Package, 0, len(existing)) @@ -227,10 +226,10 @@ func get(ctx context.Context, logger *log.Logger, c getConfig, rawTarget string) switch versions[0] { case "none": if pkgPath != "" { - return errors.Errorf("cannot delete tool by full path. Use just %v@none name instead", targetName) + return errors.Newf("cannot delete tool by full path. Use just %v@none name instead", targetName) } if len(existing) == 0 { - return errors.Errorf("nothing to delete, tool %v is not installed", targetName) + return errors.Newf("nothing to delete, tool %v is not installed", targetName) } // None means we no longer want to version this package. // NOTE: We don't remove binaries. @@ -258,10 +257,10 @@ func get(ctx context.Context, logger *log.Logger, c getConfig, rawTarget string) if mf.DirectPackage() != nil { if target.Path() != "" && target.Path() != mf.DirectPackage().Path() { if pathWasSpecified { - return errors.Errorf("found mod file %v that has different package path %q than given %q"+ + return errors.Newf("found mod file %v that has different package path %q than given %q"+ "Uninstall existing tool using `%v@none` or use `-n` flag to choose different name", e, mf.DirectPackage().Path(), target.Path(), targetName) } - return errors.Errorf("found array mod file %v that has different package path %q than previous in array %q. Manual edit?"+ + return errors.Newf("found array mod file %v that has different package path %q than previous in array %q. Manual edit?"+ "Uninstall existing tool using `%v@none` or use `-n` flag to choose different name", e, mf.DirectPackage().Path(), target.Path(), targetName) } @@ -279,7 +278,7 @@ func get(ctx context.Context, logger *log.Logger, c getConfig, rawTarget string) } } if target.Path() == "" { - return errors.Errorf("tool referenced by name %v that was never installed before; Use full path to install a tool", name) + return errors.Newf("tool referenced by name %v that was never installed before; Use full path to install a tool", name) } targets = append(targets, target) } @@ -310,10 +309,10 @@ func get(ctx context.Context, logger *log.Logger, c getConfig, rawTarget string) func validateNewName(versions []string, old, new string) error { if new == old { - return errors.Errorf("cannot be the same as module name %v", new) + return errors.Newf("cannot be the same as module name %v", new) } if versions[0] == "none" { - return errors.Errorf("cannot use with @none logic") + return errors.New("cannot use with @none logic") } return nil } @@ -328,11 +327,11 @@ func cleanGoGetTmpFiles(modDir string) error { func validateTargetName(targetName string) error { if targetName == "cmd" { - return errors.Errorf("package would be installed with ambiguous name %s. This is a common, but slightly annoying package layout"+ + return errors.Newf("package would be installed with ambiguous name %s. This is a common, but slightly annoying package layout"+ "It's advised to choose unique name with -n flag", targetName) } if targetName == strings.TrimSuffix(bingo.FakeRootModFileName, ".mod") { - return errors.Errorf("requested binary with name %q`. This is impossible, choose different name using -n flag", strings.TrimSuffix(bingo.FakeRootModFileName, ".mod")) + return errors.Newf("requested binary with name %q`. This is impossible, choose different name using -n flag", strings.TrimSuffix(bingo.FakeRootModFileName, ".mod")) } return nil } @@ -357,7 +356,7 @@ func resolvePackage( switch len(mods) { case 0: - return errors.Errorf("no indirect module found on %v", tmpModFile) + return errors.Newf("no indirect module found on %v", tmpModFile) case 1: target.RelPath = strings.TrimPrefix(strings.TrimPrefix(target.RelPath, mods[0].Path), "/") target.Module = mods[0] @@ -371,7 +370,7 @@ func resolvePackage( return nil } } - return errors.Errorf("no indirect module found on %v for %v module", tmpModFile, target.Module.Path) + return errors.Newf("no indirect module found on %v for %v module", tmpModFile, target.Module.Path) } for _, m := range mods { @@ -526,7 +525,7 @@ func resolveInGoModCache(logger *log.Logger, verbose bool, target *bingo.Package } // We have commit sha. - files, err := ioutil.ReadDir(modMetaDir) + files, err := os.ReadDir(modMetaDir) if err != nil { return err } @@ -551,15 +550,16 @@ func resolveInGoModCache(logger *log.Logger, verbose bool, target *bingo.Package logger.Println("resolveInGoModCache: .info file for sha", ver, "does not exists. Looking for different module") } } - return errors.Errorf("no module was cached matching given package %v", target.Path()) + return errors.Newf("no module was cached matching given package %v", target.Path()) } // getPackage takes package array index, tool name and package path (also module path and version which are optional) and // generates new module with the given package's module as the only dependency (direct require statement). // For generation purposes we take the existing .mod file (if exists, if paths matches). This allows: -// * Comments to be preserved. -// * First direct require module will be preserved (unless version changes) -// * Replace to be preserved if the // bingo:no_replace_fetch commend is found it such mod file. +// - Comments to be preserved. +// - First direct require module will be preserved (unless version changes) +// - Replace to be preserved if the // bingo:no_replace_fetch commend is found it such mod file. +// // As resolution of module vs package for Go Module is convoluted and all code is under internal dir, we have to rely on `go` binary // capabilities and output. // TODO(bwplotka): Consider copying code for it? Of course it's would be easier if such tool would exist in Go project itself (: @@ -589,6 +589,13 @@ func getPackage(ctx context.Context, logger *log.Logger, c installPackageConfig, if err != nil { return errors.Wrap(err, "create empty tmp mod file") } + // Stick to version that works with bingo. + // TODO(bwplotka): Stop depending on Go tooling from the provided binary, it's not reliable for what we do in bingo. + tmpEmptyModFile.ChangeGoVersion("1.17") + if err := tmpEmptyModFile.Flush(); err != nil { + return err + } + defer errcapture.Do(&err, tmpEmptyModFile.Close, "close") runnable := c.runner.With(ctx, tmpEmptyModFile.FileName(), c.modDir, nil) @@ -694,7 +701,7 @@ func autoFetchDirectives(runnable runner.Runnable, target bingo.Package) (d bing d.RetractStmts = targetModParsed.Retract if len(d.RetractStmts) > 0 && runnable.GoVersion().LessThan(version.Go116) { - return d, errors.Errorf("target Go module is using new 'retract' directive. Use Go1.16+ to build it") + return d, errors.Newf("target Go module is using new 'retract' directive. Use Go1.16+ to build it") } return d, nil } @@ -723,7 +730,7 @@ func install(ctx context.Context, logger *log.Logger, r *runner.Runner, modDir s if listOutput, err := r.With(ctx, modFile.FileName(), modDir, nil).List(listArgs...); err != nil { return errors.Wrap(err, "list") } else if !strings.HasSuffix(listOutput, "main") { - return errors.Errorf("package %s is non-main (go list output %q), nothing to get and build", pkg.Path(), listOutput) + return errors.Newf("package %s is non-main (go list output %q), nothing to get and build", pkg.Path(), listOutput) } gobin := gobin() @@ -804,7 +811,7 @@ func ensureModDirExists(logger *log.Logger, relModDir string) error { // "A file named go.mod must still be present in order to determine the module root directory, but it is not accessed." // Ref: https://golang.org/doc/go1.14#go-flags // TODO(bwplotka): Remove it: https://github.com/bwplotka/bingo/issues/20 - if err := ioutil.WriteFile( + if err := os.WriteFile( filepath.Join(relModDir, bingo.FakeRootModFileName), []byte("module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files."), 0666, @@ -813,7 +820,7 @@ func ensureModDirExists(logger *log.Logger, relModDir string) error { } // README. - if err := ioutil.WriteFile( + if err := os.WriteFile( filepath.Join(relModDir, "README.md"), []byte(fmt.Sprintf(modREADMEFmt, relModDir, relModDir, relModDir, relModDir)), 0666, @@ -821,7 +828,7 @@ func ensureModDirExists(logger *log.Logger, relModDir string) error { return err } // gitignore. - return ioutil.WriteFile(filepath.Join(relModDir, ".gitignore"), []byte(gitignore), 0666) + return os.WriteFile(filepath.Join(relModDir, ".gitignore"), []byte(gitignore), 0666) } func removeAllGlob(glob string) error { diff --git a/get_e2e_test.go b/get_e2e_test.go index 8b81500..fae5b34 100644 --- a/get_e2e_test.go +++ b/get_e2e_test.go @@ -6,16 +6,16 @@ package main_test import ( "context" "fmt" - "io/ioutil" "os" "path/filepath" "strings" "testing" + "github.com/Masterminds/semver" "github.com/bwplotka/bingo/pkg/bingo" "github.com/bwplotka/bingo/pkg/runner" "github.com/bwplotka/bingo/pkg/version" - "github.com/efficientgo/tools/core/pkg/testutil" + "github.com/efficientgo/core/testutil" ) const ( @@ -24,961 +24,505 @@ const ( defaultGoProxy = "https://proxy.golang.org" ) -var ( - bingoExpectedCompatibilityOutput = []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "f2", binName: "f2-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "f2", binName: "f2-v1.2.0", pkgVersion: "github.com/fatih/faillint@v1.2.0"}, - {name: "f2", binName: "f2-v1.5.0", pkgVersion: "github.com/fatih/faillint@v1.5.0"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - } - - bingoExpectedCompatibilityOutput_0_4_1 = []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "f2", binName: "f2-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "f2", binName: "f2-v1.2.0", pkgVersion: "github.com/fatih/faillint@v1.2.0"}, - {name: "f2", binName: "f2-v1.5.0", pkgVersion: "github.com/fatih/faillint@v1.5.0"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0", buildEnvVars: "CGO_ENABLED=1", buildFlags: "-tags=extended"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - } -) - -// TODO(bwplotka): Test running versions. To do so we might want to setup small binary printing Version at each commit. -// $GOBIN has to be set for this test to run properly. -func TestGet(t *testing.T) { +func TestGetList(t *testing.T) { t.Parallel() - currTestCaseDir := fmt.Sprintf("testdata/testproject_with_bingo_%s", strings.ReplaceAll(version.Version, ".", "_")) - g := newIsolatedGoEnv(t, defaultGoProxy) defer g.Close(t) - r, err := runner.NewRunner(context.Background(), nil, false, "go") - testutil.Ok(t, err) - goVersion := r.GoVersion() - - if ok := t.Run("empty project with sequential, advanced cases", func(t *testing.T) { - for _, isGoProject := range []bool{false, true} { - if ok := t.Run(fmt.Sprintf("isGoProject=%v", isGoProject), func(t *testing.T) { - g.Clear(t) - - // We manually build bingo binary to make sure GOCACHE will not hit us. - bingoPath := filepath.Join(g.tmpDir, bingoBin) - buildInitialGobin(t, bingoPath) - - testutil.Ok(t, os.MkdirAll(filepath.Join(g.tmpDir, "newproject"), os.ModePerm)) - p := newTestProject(t, filepath.Join(g.tmpDir, "newproject"), filepath.Join(g.tmpDir, "testproject"), isGoProject) - p.assertNotChanged(t) - - var prevBinaries []string - for _, tcase := range []struct { - name string - do func(t *testing.T) - - expectBinaries []string - expectSameBinariesAsBefore bool - expectRows []row - }{ - // TODO(bwplotka): Check module install latest, update. - { - name: "get github.com/fatih/faillint@v1.4.0", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/fatih/faillint@v1.4.0")) - testutil.Equals(t, g.ExecOutput(t, p.root, bingoPath, "list", "faillint"), g.ExecOutput(t, p.root, bingoPath, "list")) - }, - expectRows: []row{{name: "faillint", binName: "faillint-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}}, - expectBinaries: []string{"faillint-v1.4.0"}, - }, - { - name: "get github.com/bwplotka/bingo/testdata/module/buildable@2e6391144e85de14181f8e47b77d64b94a7ca3a8", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo/testdata/module/buildable@2e6391144e85de14181f8e47b77d64b94a7ca3a8")) - // Check if installed tool is what we expect. - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109093942-2e6391144e85"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "faillint", binName: "faillint-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - }, - expectBinaries: []string{"buildable-v0.0.0-20210109093942-2e6391144e85", "faillint-v1.4.0"}, - }, - { - name: "get same tool; should be noop", - do: func(t *testing.T) { - // TODO(bwplotka): Assert if actually noop. - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo/testdata/module/buildable@2e6391144e85de14181f8e47b77d64b94a7ca3a8")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "faillint", binName: "faillint-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - }, - expectSameBinariesAsBefore: true, - }, - { - name: "get github.com/bwplotka/bingo/testdata/module/buildable@375d0606849d58d106888f5c5ed80887eb899686 (update by path)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo/testdata/module/buildable@375d0606849d58d106888f5c5ed80887eb899686")) - - // Check if installed tool is what we expect. - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "faillint", binName: "faillint-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - }, - expectBinaries: []string{"buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "faillint-v1.4.0"}, + for _, isGoProject := range []bool{false, true} { + if ok := t.Run(fmt.Sprintf("isGoProject=%v", isGoProject), func(t *testing.T) { + g.Clear(t) + + testutil.Ok(t, os.MkdirAll(filepath.Join(g.tmpDir, "newproject"), os.ModePerm)) + p := newTestProject(t, filepath.Join(g.tmpDir, "newproject"), filepath.Join(g.tmpDir, "testproject"), isGoProject) + p.assertNotChanged(t) + + // We manually build bingo binary to make sure GOCACHE will not hit us. + bingoPath := filepath.Join(g.tmpDir, bingoBin) + buildInitialGobin(t, bingoPath) + + // TODO(bwplotka): Add buildable back from array version to normal one. + var prevBinaries []string + for _, tcase := range []struct { + name string + do func(t *testing.T) + + expectBinaries []string + expectSameBinariesAsBefore bool + expectRows []row + }{ + { + name: "get one module by tag on empty project", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0")) + testutil.Equals(t, g.ExecOutput(t, p.root, bingoPath, "list", "buildable"), g.ExecOutput(t, p.root, bingoPath, "list")) }, - { - name: "get faillint@v1.5.0 (update by name)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "faillint@v1.5.0")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "faillint", binName: "faillint-v1.5.0", pkgVersion: "github.com/fatih/faillint@v1.5.0"}, - }, - expectBinaries: []string{"buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "faillint-v1.4.0", "faillint-v1.5.0"}, + expectRows: []row{{name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}}, + expectBinaries: []string{"buildable-v1.0.0"}, + }, + { + name: "get the same module by tag does not change anything", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0")) + testutil.Equals(t, g.ExecOutput(t, p.root, bingoPath, "list", "buildable"), g.ExecOutput(t, p.root, bingoPath, "list")) }, - { - name: "get faillint@v1.3.0 (downgrade by name)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "faillint@v1.3.0")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - }, - expectBinaries: []string{"buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0"}, + expectRows: []row{{name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}}, + expectSameBinariesAsBefore: true, + }, + { + name: "get the same module by commit does not change anything", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable@4040b74bfd07be764f2ad16ddbf7fba07b247f1c")) + testutil.Equals(t, g.ExecOutput(t, p.root, bingoPath, "list", "buildable"), g.ExecOutput(t, p.root, bingoPath, "list")) }, - { - name: "get -n=buildable_old github.com/bwplotka/bingo/testdata/module/buildable@375d0606849d58d106888f5c5ed80887eb899686 (get buildable from same module under different name)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-n=buildable_old", "github.com/bwplotka/bingo/testdata/module/buildable@375d0606849d58d106888f5c5ed80887eb899686")) - - // Check if installed tool is what we expect. - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", - "buildable_old-v0.0.0-20210109094001-375d0606849d", - "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - }, + expectRows: []row{{name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}}, + expectSameBinariesAsBefore: true, + }, + { + name: "get the different module with different tool name by commit", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable2@9d83f47b84c5d9262ecaf649bfa01f0f1cb6ebd2")) }, - { - name: "get buildable_old@2e6391144e85de14181f8e47b77d64b94a7ca3a8 (downgrade buildable from same module under different name)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable_old@2e6391144e85de14181f8e47b77d64b94a7ca3a8")) - - // Check if installed tool is what we expect. - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - }, + expectRows: []row{ + {name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, }, - { - name: "get github.com/go-bindata/go-bindata/go-bindata@v3.1.1 (pre go module project)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/go-bindata/go-bindata/go-bindata@v3.1.1")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - }, + expectBinaries: []string{"buildable-v1.0.0", "buildable2-v0.0.0-20221007091238-9d83f47b84c5"}, + }, + { + name: "latest tag should upgrade the tool.", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable@latest")) }, - { - name: "get github.com/bwplotka/bingo/testdata/module/buildable2@2e6391144e85de14181f8e47b77d64b94a7ca3a8 (get buildable2 from same module from different version!)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo/testdata/module/buildable2@2e6391144e85de14181f8e47b77d64b94a7ca3a8")) - - // Check if installed tool is what we expect. - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable2 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable2-v0.0.0-20210109093942-2e6391144e85"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - }, + expectRows: []row{ + {name: "buildable", binName: "buildable-v1.1.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.1.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, }, - { - name: "get -n=wr_buildable github.com/bwplotka/bingo/testdata/module_with_replace/buildable@ab990d1be30bcbad4d35220e0c98e8f57289f113 (get buildable from same module with relevant replaces)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-n=wr_buildable", "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@ab990d1be30bcbad4d35220e0c98e8f57289f113")) - - // Check if installed tool is what we expect. - testutil.Equals(t, "module_with_replace.buildable 2.8\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210110214650-ab990d1be30b"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210110214650-ab990d1be30b"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectBinaries: []string{"buildable-v1.0.0", "buildable-v1.1.0", "buildable2-v0.0.0-20221007091238-9d83f47b84c5"}, + }, + { + name: "downgrade the tool", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0")) }, - { - name: "get wr_buildable@ccbd4039b94aac79d926ba5eebfe6a132a728ed8 (dowgrade buildable with different replaces - trickier than you think!)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "wr_buildable@ccbd4039b94aac79d926ba5eebfe6a132a728ed8")) - - // Check if installed tool is what we expect. - testutil.Equals(t, "module_with_replace.buildable 2.8\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210110214650-ab990d1be30b"))) - testutil.Equals(t, "module_with_replace.buildable 2.7\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectRows: []row{ + {name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, }, - { - name: "Get array of 4 versions of faillint under f2 name", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-n", "f2", "github.com/fatih/faillint@v1.5.0,v1.1.0,v1.2.0,v1.0.0")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "f2", binName: "f2-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "f2", binName: "f2-v1.2.0", pkgVersion: "github.com/fatih/faillint@v1.2.0"}, - {name: "f2", binName: "f2-v1.5.0", pkgVersion: "github.com/fatih/faillint@v1.5.0"}, - {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.5.0", - "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectSameBinariesAsBefore: true, + }, + { + name: "get same tool under different name", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-n", "buildable-v2", "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0")) }, - { - name: " Persist current state, to use for compatibility testing.", - do: func(t *testing.T) { - if isGoProject { - return - } - // Generate current Version test case for further tests. This should be committed as well if changed. - testutil.Ok(t, os.RemoveAll(currTestCaseDir)) - testutil.Ok(t, os.MkdirAll(filepath.Join(currTestCaseDir, ".bingo"), os.ModePerm)) - _, err := execCmd("", nil, "cp", "-r", filepath.Join(p.root, ".bingo"), currTestCaseDir) - testutil.Ok(t, err) - }, - expectRows: bingoExpectedCompatibilityOutput, - expectSameBinariesAsBefore: true, + expectRows: []row{ + {name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}, + {name: "buildable-v2", binName: "buildable-v2-v2.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, }, - { - name: "Get array of 2 versions of normal faillint, despite being non array before, should work", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "faillint@v1.1.0,v1.0.0")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "f2", binName: "f2-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "f2", binName: "f2-v1.2.0", pkgVersion: "github.com/fatih/faillint@v1.2.0"}, - {name: "f2", binName: "f2-v1.5.0", pkgVersion: "github.com/fatih/faillint@v1.5.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.5.0", - "faillint-v1.0.0", "faillint-v1.1.0", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectBinaries: []string{"buildable-v1.0.0", "buildable-v1.1.0", "buildable-v2-v2.0.0", "buildable2-v0.0.0-20221007091238-9d83f47b84c5"}, + }, + { + name: "rename the tool", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-r", "my-buildable-v2", "buildable-v2")) }, - { - name: "Updating f2 to different version should work", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "f2@v1.3.0,v1.4.0")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "f2", binName: "f2-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.3.0", "f2-v1.4.0", "f2-v1.5.0", - "faillint-v1.0.0", "faillint-v1.1.0", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectRows: []row{ + {name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, + {name: "my-buildable-v2", binName: "my-buildable-v2-v2.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0"}, }, - { - name: "Rename buildable2 to buildable3", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-r=buildable3", "buildable2")) - testutil.Equals(t, "module.buildable2 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable2-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable2 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable3-v0.0.0-20210109093942-2e6391144e85"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable3", binName: "buildable3-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "f2", binName: "f2-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", "buildable3-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.3.0", "f2-v1.4.0", "f2-v1.5.0", - "faillint-v1.0.0", "faillint-v1.1.0", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectBinaries: []string{"buildable-v1.0.0", "buildable-v1.1.0", "buildable-v2-v2.0.0", "buildable2-v0.0.0-20221007091238-9d83f47b84c5", "my-buildable-v2-v2.0.0"}, + }, + { + name: "build as latest", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-l", "buildable")) }, - { - name: "error cases", - do: func(t *testing.T) { - // Installing different tool with name clash should fail - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/totally-not-bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85")) - // Installing package with go name should fail. (this is due to clash with go.mod). - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/something/go")) - // Naive installing package that would result with `cmd` name fails - different name is suggested. - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/promeval@v0.3.0")) - // Updating f4 to multiple versions with none should fail. - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "f2@v1.4.0,v1.1.0,none")) - // Installing by different path that would result in same name - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/bingo/some/module/buildable")) - // Removing by path. - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/bingo/testdata/module/buildable@none")) - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/bingo/some/module/buildable@none")) - // Removing non existing tool. - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "buildable2@none")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable3", binName: "buildable3-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "f2", binName: "f2-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectSameBinariesAsBefore: true, + expectRows: []row{ + {name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, + {name: "my-buildable-v2", binName: "my-buildable-v2-v2.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0"}, }, - { - name: "-n name error cases", - do: func(t *testing.T) { - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "f2@v1.1.0,v1.4.0,v1.1.0")) // Updating to the same array versions. - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-n", "f3", "x")) - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-n", "f2-clone", "f2")) // Cloning. - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable3", binName: "buildable3-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "f2", binName: "f2-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectSameBinariesAsBefore: true, + expectBinaries: []string{"buildable", "buildable-v1.0.0", "buildable-v1.1.0", "buildable-v2-v2.0.0", "buildable2-v0.0.0-20221007091238-9d83f47b84c5", "my-buildable-v2-v2.0.0"}, + }, + { + name: "remove tool", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable@none")) }, - { - name: "-r rename error cases", - do: func(t *testing.T) { - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "github.com/bwplotka/bingo/testdata/module/buildable2")) - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85")) - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "github.com/bwplotka/bingo/testdata/module/buildable2@none")) - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "buildable2@none")) - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "buildable2@v0.0.0-20210109093942-2e6391144e85")) - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=faillint", "buildable2")) // Renaming to existing name. - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=faiLLint", "buildable2")) // Renaming to existing name (it's not case sensitive). - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r", "f3", "x")) // Renaming not existing. - testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r", "f4", "f3@v1.1.0,v1.0.0")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable3", binName: "buildable3-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f2", binName: "f2-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "f2", binName: "f2-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectSameBinariesAsBefore: true, + expectRows: []row{ + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, + {name: "my-buildable-v2", binName: "my-buildable-v2-v2.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0"}, }, - { - name: "Renaming f2 to f3 should work", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-r", "f3", "f2")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable3", binName: "buildable3-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f3", binName: "f3-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, - {name: "f3", binName: "f3-v1.4.0", pkgVersion: "github.com/fatih/faillint@v1.4.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", "buildable3-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.3.0", "f2-v1.4.0", "f2-v1.5.0", "f3-v1.3.0", "f3-v1.4.0", - "faillint-v1.0.0", "faillint-v1.1.0", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectSameBinariesAsBefore: true, + }, + { + name: "install array version", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable@39a7f0ae0b1e1e67a75033fc671ccc2c5b3bbddf,v1.0.0,v1.1.0")) }, - { - name: "Updating f3 back to non array version should work", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "f3@v1.1.0")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable3", binName: "buildable3-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f3", binName: "f3-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", "buildable3-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.3.0", "f2-v1.4.0", "f2-v1.5.0", "f3-v1.1.0", "f3-v1.3.0", "f3-v1.4.0", - "faillint-v1.0.0", "faillint-v1.1.0", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectRows: []row{ + {name: "buildable", binName: "buildable-v0.0.0-20221007091146-39a7f0ae0b1e", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v0.0.0-20221007091146-39a7f0ae0b1e"}, + {name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}, + {name: "buildable", binName: "buildable-v1.1.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.1.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, + {name: "my-buildable-v2", binName: "my-buildable-v2-v2.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0"}, }, - { - name: "Remove buildable3 by name", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable3@none")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f3", binName: "f3-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectSameBinariesAsBefore: true, + expectBinaries: []string{"buildable", "buildable-v0.0.0-20221007091146-39a7f0ae0b1e", "buildable-v1.0.0", "buildable-v1.1.0", "buildable-v2-v2.0.0", "buildable2-v0.0.0-20221007091238-9d83f47b84c5", "my-buildable-v2-v2.0.0"}, + }, + { + name: "get from array version to single one", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable@v1.1.0")) }, - { - name: "get buildable without suffix as well", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-l", "buildable")) - - // Check if installed tool is what we expect. - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable"))) - testutil.Equals(t, "module.buildable2 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable2-v0.0.0-20210109093942-2e6391144e85"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f3", binName: "f3-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable", - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", "buildable3-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.3.0", "f2-v1.4.0", "f2-v1.5.0", "f3-v1.1.0", "f3-v1.3.0", "f3-v1.4.0", - "faillint-v1.0.0", "faillint-v1.1.0", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectRows: []row{ + {name: "buildable", binName: "buildable-v1.1.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.1.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, + {name: "my-buildable-v2", binName: "my-buildable-v2-v2.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0"}, }, - { - name: "get buildable different version without suffix as well", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-l", "buildable@v0.0.0-20210109093942-2e6391144e85")) - - // Check if installed tool is what we expect. - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable"))) - testutil.Equals(t, "module.buildable2 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable2-v0.0.0-20210109093942-2e6391144e85"))) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "f3", binName: "f3-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable", - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", "buildable3-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.3.0", "f2-v1.4.0", "f2-v1.5.0", "f3-v1.1.0", "f3-v1.3.0", "f3-v1.4.0", - "faillint-v1.0.0", "faillint-v1.1.0", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectSameBinariesAsBefore: true, + }, + { + name: "get from single version back to array", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable@39a7f0ae0b1e1e67a75033fc671ccc2c5b3bbddf,v1.0.0,v1.1.0")) }, - { - name: "get istio.io/tools/cmd/cue-gen@355a0b7a6ba743d14e3a43a3069287086207f35c (short module base path)", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "istio.io/tools/cmd/cue-gen@355a0b7a6ba743d14e3a43a3069287086207f35c")) - }, - expectRows: []row{ - {name: "buildable", binName: "buildable-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, - {name: "cue-gen", binName: "cue-gen-v0.0.0-20210909062344-355a0b7a6ba7", pkgVersion: "istio.io/tools/cmd/cue-gen@v0.0.0-20210909062344-355a0b7a6ba7"}, - {name: "f3", binName: "f3-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "faillint", binName: "faillint-v1.0.0", pkgVersion: "github.com/fatih/faillint@v1.0.0"}, - {name: "faillint", binName: "faillint-v1.1.0", pkgVersion: "github.com/fatih/faillint@v1.1.0"}, - {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, - {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, - }, - expectBinaries: []string{ - "buildable", - "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", "buildable3-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", - "cue-gen-v0.0.0-20210909062344-355a0b7a6ba7", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.3.0", "f2-v1.4.0", "f2-v1.5.0", "f3-v1.1.0", "f3-v1.3.0", "f3-v1.4.0", - "faillint-v1.0.0", "faillint-v1.1.0", "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", - "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", - }, + expectRows: []row{ + {name: "buildable", binName: "buildable-v0.0.0-20221007091146-39a7f0ae0b1e", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v0.0.0-20221007091146-39a7f0ae0b1e"}, + {name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}, + {name: "buildable", binName: "buildable-v1.1.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.1.0"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, + {name: "my-buildable-v2", binName: "my-buildable-v2-v2.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0"}, }, - { - name: "Remove rest of tools", - do: func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "FaIllint@none")) // case should not matter. - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable_old@none")) - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "cue-gen@none")) - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "f3@none")) - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable@none")) - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "wr_buildable@none")) - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "go-bindata@none")) - }, - expectRows: []row(nil), - expectSameBinariesAsBefore: true, + expectSameBinariesAsBefore: true, + }, + { + name: "remove all", + do: func(t *testing.T) { + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable@none")) + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "buildable2@none")) + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "my-buildable-v2@none")) + + // Check additionally if Makefile was removed. + _, err := os.Stat(filepath.Join(p.root, ".bingo", "Variables.mk")) + testutil.NotOk(t, err) }, - } { - if ok := t.Run(tcase.name, func(t *testing.T) { - defer p.assertNotChanged(t, defaultModDir) + expectSameBinariesAsBefore: true, + }, + } { + if ok := t.Run(tcase.name, func(t *testing.T) { + defer p.assertNotChanged(t, defaultModDir) - tcase.do(t) + tcase.do(t) - expectBingoListRows(t, tcase.expectRows, g.ExecOutput(t, p.root, bingoPath, "list")) + expectBingoListRows(t, tcase.expectRows, g.ExecOutput(t, p.root, bingoPath, "list")) - binaries := g.existingBinaries(t) - if tcase.expectSameBinariesAsBefore { - testutil.Equals(t, prevBinaries, g.existingBinaries(t)) - } else { - testutil.Equals(t, tcase.expectBinaries, g.existingBinaries(t)) - } - prevBinaries = binaries - }); !ok { - return + binaries := g.existingBinaries(t) + if tcase.expectSameBinariesAsBefore { + testutil.Equals(t, prevBinaries, g.existingBinaries(t)) + } else { + testutil.Equals(t, tcase.expectBinaries, g.existingBinaries(t)) } + prevBinaries = binaries + }); !ok { + return } - }); !ok { - return } + + }); !ok { + return } - }); !ok { - return } +} + +func TestGet_Errors(t *testing.T) { + // Existing bug - > on names can be case-sensitive but makefile varialbes are not! + + // name: "error cases", + // do: func(t *testing.T) { + // // Installing different tool with name clash should fail + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/totally-not-bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85")) + // // Installing package with go name should fail. (this is due to clash with go.mod). + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/something/go")) + // // Naive installing package that would result with `cmd` name fails - different name is suggested. + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/promeval@v0.3.0")) + // // Updating f4 to multiple versions with none should fail. + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "f2@v1.4.0,v1.1.0,none")) + // // Installing by different path that would result in same name + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/bingo/some/module/buildable")) + // // Removing by path. + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/bingo/testdata/module/buildable@none")) + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "github.com/bwplotka/bingo/some/module/buildable@none")) + // // Removing non existing tool. + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "buildable2@none")) + // }, + // Get unexisting module + // Rename unexisting tool + // Removing unexisting tool + // Rm by path + // Use g.ExpectErr(p... + // name: "-r rename error cases", + // do: func(t *testing.T) { + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "github.com/bwplotka/bingo/testdata/module/buildable2")) + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85")) + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "github.com/bwplotka/bingo/testdata/module/buildable2@none")) + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "buildable2@none")) + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=buildable4", "buildable2@v0.0.0-20210109093942-2e6391144e85")) + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=faillint", "buildable2")) // Renaming to existing name. + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r=faiLLint", "buildable2")) // Renaming to existing name (it's not case sensitive). + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r", "f3", "x")) // Renaming not existing. + // testutil.NotOk(t, g.ExpectErr(p.root, bingoPath, "get", "-r", "f4", "f3@v1.1.0,v1.0.0")) + // }, + // { + // name: "get wr_buildable@ccbd4039b94aac79d926ba5eebfe6a132a728ed8 (dowgrade buildable with different replaces - trickier than you think!)", + // do: func(t *testing.T) { + // fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "wr_buildable@ccbd4039b94aac79d926ba5eebfe6a132a728ed8")) + // + // // Check if installed tool is what we expect. + // testutil.Equals(t, "module_with_replace.buildable 2.8\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210110214650-ab990d1be30b"))) + // testutil.Equals(t, "module_with_replace.buildable 2.7\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"))) + // }, + // expectRows: []row{ + // {name: "buildable", binName: "buildable-v0.0.0-20210109094001-375d0606849d", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109094001-375d0606849d"}, + // {name: "buildable2", binName: "buildable2-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable2@v0.0.0-20210109093942-2e6391144e85"}, + // {name: "buildable_old", binName: "buildable_old-v0.0.0-20210109093942-2e6391144e85", pkgVersion: "github.com/bwplotka/bingo/testdata/module/buildable@v0.0.0-20210109093942-2e6391144e85"}, + // {name: "faillint", binName: "faillint-v1.3.0", pkgVersion: "github.com/fatih/faillint@v1.3.0"}, + // {name: "go-bindata", binName: "go-bindata-v3.1.1+incompatible", pkgVersion: "github.com/go-bindata/go-bindata/go-bindata@v3.1.1+incompatible"}, + // {name: "wr_buildable", binName: "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", pkgVersion: "github.com/bwplotka/bingo/testdata/module_with_replace/buildable@v0.0.0-20210109165512-ccbd4039b94a"}, + // }, + // expectBinaries: []string{ + // "buildable-v0.0.0-20210109093942-2e6391144e85", "buildable-v0.0.0-20210109094001-375d0606849d", "buildable2-v0.0.0-20210109093942-2e6391144e85", + // "buildable_old-v0.0.0-20210109093942-2e6391144e85", "buildable_old-v0.0.0-20210109094001-375d0606849d", + // "faillint-v1.3.0", "faillint-v1.4.0", "faillint-v1.5.0", + // "go-bindata-v3.1.1+incompatible", + // "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", "wr_buildable-v0.0.0-20210110214650-ab990d1be30b", + // }, + // }, +} + +func TestCompatibilityCurrentVersionCreate(t *testing.T) { + currTestCaseDir := fmt.Sprintf("testdata/testproject_with_bingo_%s", strings.ReplaceAll(version.Version, ".", "_")) + + g := newIsolatedGoEnv(t, defaultGoProxy) + defer g.Close(t) + + // We manually build bingo binary to make sure GOCACHE will not hit us. + bingoPath := filepath.Join(g.tmpDir, bingoBin) + buildInitialGobin(t, bingoPath) + + testutil.Ok(t, os.MkdirAll(filepath.Join(g.tmpDir, "newproject"), os.ModePerm)) + p := newTestProject(t, filepath.Join(g.tmpDir, "newproject"), filepath.Join(g.tmpDir, "testproject"), false) + p.assertNotChanged(t) + + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable@39a7f0ae0b1e1e67a75033fc671ccc2c5b3bbddf,v1.0.0,v1.1.0")) + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/bwplotka/bingo-testmodule/buildable2@9d83f47b84c5d9262ecaf649bfa01f0f1cb6ebd2")) + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-n", "buildable-v2", "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0")) + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "-n", "buildable-withReplace", "github.com/bwplotka/bingo-testmodule/buildable@fe4d42a37d927cbf6d2c0f30fe1459d493146664")) + + expectBingoListRows(t, bingoExpectedCompatibilityRows, g.ExecOutput(t, p.root, bingoPath, "list")) + testutil.Equals(t, bingoExpectedCompatibilityBinaries, g.existingBinaries(t)) + + // Generate current version test case for further tests. This should be committed as well if changed. + testutil.Ok(t, os.RemoveAll(currTestCaseDir)) + testutil.Ok(t, os.MkdirAll(filepath.Join(currTestCaseDir, ".bingo"), os.ModePerm)) + _, err := execCmd("", nil, "cp", "-r", filepath.Join(p.root, ".bingo"), currTestCaseDir) + testutil.Ok(t, err) +} + +var ( + bingoExpectedCompatibilityRows = []row{ + {name: "buildable", binName: "buildable-v0.0.0-20221007091146-39a7f0ae0b1e", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v0.0.0-20221007091146-39a7f0ae0b1e"}, + {name: "buildable", binName: "buildable-v1.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.0.0"}, + {name: "buildable", binName: "buildable-v1.1.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v1.1.0"}, + {name: "buildable-v2", binName: "buildable-v2-v2.0.0", pkgVersion: "github.com/bwplotka/bingo-testmodule/v2/buildable@v2.0.0"}, + {name: "buildable-withReplace", binName: "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable@v0.0.0-20221007091003-fe4d42a37d92"}, + {name: "buildable2", binName: "buildable2-v0.0.0-20221007091238-9d83f47b84c5", pkgVersion: "github.com/bwplotka/bingo-testmodule/buildable2@v0.0.0-20221007091238-9d83f47b84c5"}, + } + bingoExpectedCompatibilityBinaries = []string{ + "buildable-v0.0.0-20221007091146-39a7f0ae0b1e", "buildable-v1.0.0", "buildable-v1.1.0", "buildable-v2-v2.0.0", "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92", "buildable2-v0.0.0-20221007091238-9d83f47b84c5", + } +) + +func TestCompatibility(t *testing.T) { + t.Parallel() - t.Run("Compatibility test", func(t *testing.T) { - dirs, err := filepath.Glob("testdata/testproject*") + dirs, err := filepath.Glob("testdata/testproject*") + testutil.Ok(t, err) + + g := newIsolatedGoEnv(t, defaultGoProxy) + defer g.Close(t) + + var goVersion *semver.Version + { + r, err := runner.NewRunner(context.Background(), nil, false, "go") testutil.Ok(t, err) + goVersion = r.GoVersion() + } - for _, dir := range dirs { - t.Run(dir, func(t *testing.T) { - compatibilityOutput := bingoExpectedCompatibilityOutput + for _, dir := range dirs { + t.Run(dir, func(t *testing.T) { + for _, isGoProject := range []bool{false, true} { + t.Run(fmt.Sprintf("isGoProject=%v", isGoProject), func(t *testing.T) { + t.Run("Via bingo get all", func(t *testing.T) { + g.Clear(t) - // Special test case. failint.mod for v0.4.1 version contains line syntax, allowing go build to add those build flags (which does nothing to failint). - // Yet, check if they will get preserved. - // TODO(bwplotka): Design test module that tests better those edge cases instead of installing different 3rdparty real modules. - if dir == "testdata/testproject_with_bingo_v0_4_1" { - compatibilityOutput = bingoExpectedCompatibilityOutput_0_4_1 - } + // Copy testproject at the beginning to temp dir. + p := newTestProject(t, dir, filepath.Join(g.tmpDir, "testproject1"), isGoProject) + p.assertNotChanged(t, defaultModDir) - for _, isGoProject := range []bool{false, true} { - t.Run(fmt.Sprintf("isGoProject=%v", isGoProject), func(t *testing.T) { - t.Run("Via bingo get all", func(t *testing.T) { - g.Clear(t) - - // We manually build bingo binary to make sure GOCACHE will not hit us. - goBinPath := filepath.Join(g.tmpDir, bingoBin) - buildInitialGobin(t, goBinPath) - - // Copy testproject at the beginning to temp dir. - p := newTestProject(t, dir, filepath.Join(g.tmpDir, "testproject1"), isGoProject) - p.assertNotChanged(t, defaultModDir) - - testutil.Equals(t, []string{}, g.existingBinaries(t)) - expectBingoListRows(t, compatibilityOutput, g.ExecOutput(t, p.root, goBinPath, "list")) - - defer p.assertNotChanged(t, defaultModDir) - - // Get all binaries by doing 'bingo get'. - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get")) - testutil.Equals(t, []string{ - "buildable-v0.0.0-20210109094001-375d0606849d", - "buildable2-v0.0.0-20210109093942-2e6391144e85", - "buildable_old-v0.0.0-20210109093942-2e6391144e85", - "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.5.0", - "faillint-v1.3.0", "go-bindata-v3.1.1+incompatible", - "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a", - }, g.existingBinaries(t)) - expectBingoListRows(t, compatibilityOutput, g.ExecOutput(t, p.root, goBinPath, "list")) - - // Expect binaries works: - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - testutil.Equals(t, "module.buildable 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module.buildable2 2\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable2-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module_with_replace.buildable 2.7\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"))) - }) - t.Run("Via bingo get one by one", func(t *testing.T) { - g.Clear(t) + // We manually build bingo binary to make sure GOCACHE will not hit us. + bingoPath := filepath.Join(g.tmpDir, bingoBin) + buildInitialGobin(t, bingoPath) - // We manually build bingo binary to make sure GOCACHE will not hit us. - goBinPath := filepath.Join(g.tmpDir, bingoBin) - buildInitialGobin(t, goBinPath) + expectBingoListRows(t, bingoExpectedCompatibilityRows, g.ExecOutput(t, p.root, bingoPath, "list")) + testutil.Equals(t, []string{}, g.existingBinaries(t)) - // Copy testproject at the beginning to temp dir. - p := newTestProject(t, dir, filepath.Join(g.tmpDir, "testproject1"), isGoProject) - p.assertNotChanged(t, defaultModDir) + defer p.assertNotChanged(t, defaultModDir) - testutil.Equals(t, []string{}, g.existingBinaries(t)) - defer p.assertNotChanged(t, defaultModDir) + // Get all binaries by doing 'bingo get'. + fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get")) + expectBingoListRows(t, bingoExpectedCompatibilityRows, g.ExecOutput(t, p.root, bingoPath, "list")) + testutil.Equals(t, bingoExpectedCompatibilityBinaries, g.existingBinaries(t)) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "faillint")) - testutil.Equals(t, []string{"faillint-v1.3.0"}, g.existingBinaries(t)) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "buildable")) - testutil.Equals(t, []string{"buildable-v0.0.0-20210109094001-375d0606849d", "faillint-v1.3.0"}, g.existingBinaries(t)) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "wr_buildable")) - testutil.Equals(t, []string{"buildable-v0.0.0-20210109094001-375d0606849d", "faillint-v1.3.0", "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"}, g.existingBinaries(t)) + // Expect binaries works: + // TODO(bwplotka) Check all. + testutil.Equals(t, "buildable\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v1.0.0"))) + testutil.Equals(t, "buildable\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"))) + }) + t.Run("Via go", func(t *testing.T) { + g.Clear(t) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - testutil.NotOk(t, g.ExpectErr(p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109093942-2e6391144e85"))) - testutil.NotOk(t, g.ExpectErr(p.root, filepath.Join(g.gobin, "buildable2-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module_with_replace.buildable 2.7\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"))) + // Copy testproject at the beginning to temp dir. + // NOTE: No bingo binary is required here. + p := newTestProject(t, dir, filepath.Join(g.tmpDir, "testproject2"), isGoProject) + p.assertNotChanged(t, defaultModDir) - // Get array version with one go. - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "f2")) - testutil.Equals(t, []string{"buildable-v0.0.0-20210109094001-375d0606849d", "f2-v1.0.0", "f2-v1.1.0", "f2-v1.2.0", "f2-v1.5.0", "faillint-v1.3.0", "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"}, g.existingBinaries(t)) + // We manually build bingo binary to make sure GOCACHE will not hit us. + bingoPath := filepath.Join(g.tmpDir, bingoBin) + buildInitialGobin(t, bingoPath) - expectBingoListRows(t, compatibilityOutput, g.ExecOutput(t, p.root, goBinPath, "list")) - }) - t.Run("Via go", func(t *testing.T) { - g.Clear(t) - - // Copy testproject at the beginning to temp dir. - // NOTE: No bingo binary is required here. - p := newTestProject(t, dir, filepath.Join(g.tmpDir, "testproject2"), isGoProject) - p.assertNotChanged(t, defaultModDir) - - testutil.Equals(t, []string{}, g.existingBinaries(t)) - defer p.assertNotChanged(t, defaultModDir) - - // Get all binaries by doing native go build. - if isGoProject { - // This should work without cd even. - _, err := execCmd(p.root, nil, "go", "build", "-mod=mod", "-modfile="+filepath.Join(defaultModDir, "buildable.mod"), - "-o="+filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"), "github.com/bwplotka/bingo/testdata/module/buildable") - testutil.Ok(t, err) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - - _, err = execCmd(p.root, nil, "go", "build", "-mod=mod", "-modfile="+filepath.Join(defaultModDir, "faillint.mod"), - "-o="+filepath.Join(g.gobin, "faillint-v1.3.0"), "github.com/fatih/faillint") - testutil.Ok(t, err) - _, err = execCmd(p.root, nil, "go", "build", "-mod=mod", "-modfile="+filepath.Join(defaultModDir, "wr_buildable.mod"), - "-o="+filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"), "github.com/bwplotka/bingo/testdata/module_with_replace/buildable") - testutil.Ok(t, err) - testutil.Equals(t, "module_with_replace.buildable 2.7\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"))) - } else { - // For no go projects we have this "bug" that requires go.mod to be present. - _, err := execCmd(filepath.Join(p.root, defaultModDir), nil, "go", "build", "-mod=mod", "-modfile=buildable.mod", - "-o="+filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"), "github.com/bwplotka/bingo/testdata/module/buildable") - testutil.Ok(t, err) - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - - _, err = execCmd(filepath.Join(p.root, defaultModDir), nil, "go", "build", "-mod=mod", "-modfile=faillint.mod", - "-o="+filepath.Join(g.gobin, "faillint-v1.3.0"), "github.com/fatih/faillint") - testutil.Ok(t, err) - _, err = execCmd(filepath.Join(p.root, defaultModDir), nil, "go", "build", "-mod=mod", "-modfile=wr_buildable.mod", - "-o="+filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"), "github.com/bwplotka/bingo/testdata/module_with_replace/buildable") - testutil.Ok(t, err) - testutil.Equals(t, "module_with_replace.buildable 2.7\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"))) - } - testutil.Equals(t, []string{"buildable-v0.0.0-20210109094001-375d0606849d", "faillint-v1.3.0", "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"}, g.existingBinaries(t)) - }) - // TODO(bwplotka): Test variables.env as well. - t.Run("Makefile", func(t *testing.T) { - if !goVersion.LessThan(version.Go116) { - // These projects are configured with modules but the generated Makefiles do not contain the - // `-mod=mod` argument, and that makes those Makefiles incompatible with Go modules in 1.16. - // Let's run bingo get to simulate - for _, v := range []string{"v0_1_1", "v0_2_0", "v0_2_1", "v0_2_2"} { - if strings.HasSuffix(dir, v) { - t.Skipf("skipping %q in Go >= 1.16 because the generated Makefile is missing the '-mod-mod' flag and it is needed in Go >= 1.16", dir) - } + expectBingoListRows(t, bingoExpectedCompatibilityRows, g.ExecOutput(t, p.root, bingoPath, "list")) + testutil.Equals(t, []string{}, g.existingBinaries(t)) + + defer p.assertNotChanged(t, defaultModDir) + + if isGoProject { + // This should work without cd even. + _, err := execCmd(p.root, nil, "go", "build", "-mod=mod", "-modfile="+filepath.Join(defaultModDir, "buildable.1.mod"), + "-o="+filepath.Join(g.gobin, "buildable-v1.0.0"), "github.com/bwplotka/bingo-testmodule/buildable") + testutil.Ok(t, err) + _, err = execCmd(p.root, nil, "go", "build", "-mod=mod", "-modfile="+filepath.Join(defaultModDir, "buildable-withReplace.mod"), + "-o="+filepath.Join(g.gobin, "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"), "github.com/bwplotka/bingo-testmodule/buildable") + testutil.Ok(t, err) + } else { + // For no go projects we have this "bug" that requires go.mod to be present. + _, err := execCmd(filepath.Join(p.root, defaultModDir), nil, "go", "build", "-mod=mod", "-modfile=buildable.1.mod", + "-o="+filepath.Join(g.gobin, "buildable-v1.0.0"), "github.com/bwplotka/bingo-testmodule/buildable") + testutil.Ok(t, err) + _, err = execCmd(filepath.Join(p.root, defaultModDir), nil, "go", "build", "-mod=mod", "-modfile=buildable-withReplace.mod", + "-o="+filepath.Join(g.gobin, "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"), "github.com/bwplotka/bingo-testmodule/buildable") + testutil.Ok(t, err) + + } + testutil.Equals(t, "buildable\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v1.0.0"))) + testutil.Equals(t, "buildable\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"))) + testutil.Equals(t, []string{"buildable-v1.0.0", "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"}, g.existingBinaries(t)) + }) + // TODO(bwplotka): Test variables.env as well. + t.Run("Makefile", func(t *testing.T) { + if !goVersion.LessThan(version.Go116) { + // These projects are configured with modules but the generated Makefiles do not contain the + // `-mod=mod` argument, and that makes those Makefiles incompatible with Go modules in 1.16. + // Let's run bingo get to simulate + for _, v := range []string{"v0_1_1", "v0_2_0", "v0_2_1", "v0_2_2"} { + if strings.HasSuffix(dir, v) { + t.Skipf("skipping %q in Go >= 1.16 because the generated Makefile is missing the '-mod-mod' flag and it is needed in Go >= 1.16", dir) } } + } - // Make is one of test requirement. - makePath := makePath(t) - - g.Clear(t) - - // We manually build bingo binary to make sure GOCACHE will not hit us. - goBinPath := filepath.Join(g.tmpDir, bingoBin) - buildInitialGobin(t, goBinPath) - - // Copy testproject at the beginning to temp dir. - prjRoot := filepath.Join(g.tmpDir, "testproject") - p := newTestProject(t, dir, prjRoot, isGoProject) - p.assertNotChanged(t, defaultModDir) - - testutil.Equals(t, []string{}, g.existingBinaries(t)) - g.ExecOutput(t, p.root, makePath, "faillint-exists") - g.ExecOutput(t, p.root, makePath, "buildable-exists") - g.ExecOutput(t, p.root, makePath, "wr_buildable-exists") - - testutil.Equals(t, "module.buildable 2.1\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v0.0.0-20210109094001-375d0606849d"))) - testutil.NotOk(t, g.ExpectErr(p.root, filepath.Join(g.gobin, "buildable_old-v0.0.0-20210109093942-2e6391144e85"))) - testutil.NotOk(t, g.ExpectErr(p.root, filepath.Join(g.gobin, "buildable2-v0.0.0-20210109093942-2e6391144e85"))) - testutil.Equals(t, "module_with_replace.buildable 2.7\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"))) - - testutil.Equals(t, "checking faillint\n", g.ExecOutput(t, p.root, makePath, "faillint-exists")) - testutil.Equals(t, "checking buildable\n", g.ExecOutput(t, p.root, makePath, "buildable-exists")) - testutil.Equals(t, "checking wr_buildable\n", g.ExecOutput(t, p.root, makePath, "wr_buildable-exists")) - - testutil.Equals(t, []string{"buildable-v0.0.0-20210109094001-375d0606849d", "faillint-v1.3.0", "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"}, g.existingBinaries(t)) - t.Run("Delete binary file, expect reinstall", func(t *testing.T) { - _, err := execCmd(g.gobin, nil, "rm", "faillint-v1.3.0") - testutil.Ok(t, err) - testutil.Equals(t, []string{"buildable-v0.0.0-20210109094001-375d0606849d", "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"}, g.existingBinaries(t)) - - testutil.Equals(t, "(re)installing "+g.gobin+"/faillint-v1.3.0\nchecking faillint\n", g.ExecOutput(t, p.root, makePath, "faillint-exists")) - testutil.Equals(t, "checking faillint\n", g.ExecOutput(t, p.root, makePath, "faillint-exists")) - testutil.Equals(t, []string{"buildable-v0.0.0-20210109094001-375d0606849d", "faillint-v1.3.0", "wr_buildable-v0.0.0-20210109165512-ccbd4039b94a"}, g.existingBinaries(t)) - }) - t.Run("Delete makefile", func(t *testing.T) { - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "buildable2@none")) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "faillint@none")) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "buildable_old@none")) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "f2@none")) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "buildable@none")) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "wr_buildable@none")) - fmt.Println(g.ExecOutput(t, p.root, goBinPath, "get", "go-bindata@none")) - - expectBingoListRows(t, nil, g.ExecOutput(t, p.root, goBinPath, "list")) - - _, err := os.Stat(filepath.Join(p.root, ".bingo", "Variables.mk")) - testutil.NotOk(t, err) - }) - }) - }) - } - }) - } - }) -} + // Make is one of test requirement. + makePath := makePath(t) -// TODO(bwplotka): Test running versions. To do so we might want to setup small binary printing Version at each commit. -// $GOBIN has to be set for this test to run properly. -func TestGetIndivCases(t *testing.T) { - t.Parallel() + g.Clear(t) - tmpDir, err := ioutil.TempDir(os.TempDir(), "bingo-tmpgoenv") - testutil.Ok(t, err) - t.Cleanup(func() { testutil.Ok(t, os.RemoveAll(tmpDir)) }) + // Copy testproject at the beginning to temp dir. + prjRoot := filepath.Join(g.tmpDir, "testproject") + p := newTestProject(t, dir, prjRoot, isGoProject) + p.assertNotChanged(t, defaultModDir) - // We manually build bingo binary to make sure GOCACHE will not hit us. - bingoPath := filepath.Join(tmpDir, bingoBin) - buildInitialGobin(t, bingoPath) + // We manually build bingo binary to make sure GOCACHE will not hit us. + bingoPath := filepath.Join(g.tmpDir, bingoBin) + buildInitialGobin(t, bingoPath) - r, err := runner.NewRunner(context.Background(), nil, false, "go") - testutil.Ok(t, err) - goVersion := r.GoVersion() - - for _, tcase := range []struct { - name string - do func(t *testing.T, g *goEnv, p *testProject) - - expectBinaries []string - expectRows []row - }{ - // TODO(bwplotka): Uncomment when https://github.com/githubnemo/CompileDaemon/pull/76 is merged or - // https://github.com/bwplotka/bingo/issues/31 - //{ - // // Regression test against https://github.com/bwplotka/bingo/issues/65. - // name: "get tool with capital letters in name (pre modules)", - // do: func(t *testing.T, g *goEnv, p *testProject) { - // fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/githubnemo/CompileDaemon@v1.2.1")) - // }, - // expectRows: []row{ - // {name: "compiledaemon", binName: "compiledaemon-v1.2.1", pkgVersion: "github.com/githubnemo/CompileDaemon@v1.2.1"}, - // }, - // expectBinaries: []string{"compiledaemon-v1.2.1"}, - //}, - //{ - // // Regression test against https://github.com/bwplotka/bingo/issues/65. - // name: "get tool with capital letters in name", - // do: func(t *testing.T, g *goEnv, p *testProject) { - // fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/githubnemo/CompileDaemon@87e39427f4ba26da4400abf3b26b2e58bfc9ebe6")) - // }, - // expectRows: []row{ - // {name: "compiledaemon", binName: "compiledaemon-v1.3.1-0.20210706185141-87e39427f4ba", pkgVersion: "github.com/githubnemo/CompileDaemon@v1.3.1-0.20210706185141-87e39427f4ba"}, - // }, - // expectBinaries: []string{"compiledaemon-v1.3.1-0.20210706185141-87e39427f4ba"}, - //}, - { - name: "Get tricky case with replace (thanos)", - do: func(t *testing.T, g *goEnv, p *testProject) { - // For Thanos/Prom/k8s etc without replace even go-get or list fails. This should be handled well. - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/thanos-io/thanos/cmd/thanos@24706d69ad6f613f5cabc9e918d8fda99f7f732b")) - }, - expectRows: []row{ - {name: "thanos", binName: "thanos-v0.24.1-0.20220421131511-24706d69ad6f", pkgVersion: "github.com/thanos-io/thanos/cmd/thanos@v0.24.1-0.20220421131511-24706d69ad6f"}, - }, - expectBinaries: []string{"thanos-v0.24.1-0.20220421131511-24706d69ad6f"}, - }, - { - name: "Get tricky case with retract (ginkgo)", - do: func(t *testing.T, g *goEnv, p *testProject) { - if goVersion.LessThan(version.Go116) { - t.Skip("Go version below 1.16 are not understanding go modules with retract directive; skip it.") - } - fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/onsi/ginkgo/ginkgo@v1.16.4")) - }, - expectRows: []row{ - {name: "ginkgo", binName: "ginkgo-v1.16.4", pkgVersion: "github.com/onsi/ginkgo/ginkgo@v1.16.4"}, - }, - expectBinaries: []string{"ginkgo-v1.16.4"}, - }, - } { - tcase := tcase - t.Run(tcase.name, func(t *testing.T) { - t.Parallel() - - g := newIsolatedGoEnv(t, defaultGoProxy) - defer g.Close(t) + expectBingoListRows(t, bingoExpectedCompatibilityRows, g.ExecOutput(t, p.root, bingoPath, "list")) + testutil.Equals(t, []string{}, g.existingBinaries(t)) - testutil.Ok(t, os.MkdirAll(filepath.Join(g.tmpDir, "newproject"), os.ModePerm)) - p := newTestProject(t, filepath.Join(g.tmpDir, "newproject"), filepath.Join(g.tmpDir, "testproject"), false) - p.assertNotChanged(t) + g.ExecOutput(t, p.root, makePath, "buildable-v2-exists") + testutil.Equals(t, []string{"buildable-v2-v2.0.0"}, g.existingBinaries(t)) + testutil.Equals(t, "buildable\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v2-v2.0.0"))) + testutil.NotOk(t, g.ExpectErr(p.root, filepath.Join(g.gobin, "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"))) + + testutil.Equals(t, "(re)installing "+g.gobin+"/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92\nchecking buildable-with-replace\n", g.ExecOutput(t, p.root, makePath, "buildable-withreplace-exists")) + testutil.Equals(t, "checking buildable-v2\n", g.ExecOutput(t, p.root, makePath, "buildable-v2-exists")) + testutil.Equals(t, []string{"buildable-v2-v2.0.0", "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"}, g.existingBinaries(t)) + testutil.Equals(t, "buildable\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-v2-v2.0.0"))) + testutil.Equals(t, "buildable\n", g.ExecOutput(t, p.root, filepath.Join(g.gobin, "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"))) - tcase.do(t, g, p) - p.assertNotChanged(t, defaultModDir) + t.Run("Delete binary file, expect reinstall", func(t *testing.T) { + _, err := execCmd(g.gobin, nil, "rm", "buildable-v2-v2.0.0") + testutil.Ok(t, err) + testutil.Equals(t, []string{"buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"}, g.existingBinaries(t)) - expectBingoListRows(t, tcase.expectRows, g.ExecOutput(t, p.root, bingoPath, "list")) - testutil.Equals(t, tcase.expectBinaries, g.existingBinaries(t)) + testutil.Equals(t, "(re)installing "+g.gobin+"/buildable-v2-v2.0.0\nchecking buildable-v2\n", g.ExecOutput(t, p.root, makePath, "buildable-v2-exists")) + testutil.Equals(t, "checking buildable-with-replace\n", g.ExecOutput(t, p.root, makePath, "buildable-withreplace-exists")) + testutil.Equals(t, []string{"buildable-v2-v2.0.0", "buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92"}, g.existingBinaries(t)) + }) + }) + }) + } }) } } +func TestGet_ModuleCases(t *testing.T) { + // Tricky cases TODO. + + // // Regression test against https://github.com/bwplotka/bingo/issues/65. + // name: "get tool with capital letters in name", + // do: func(t *testing.T, g *goEnv, p *testProject) { + // Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/githubnemo/CompileDaemon@87e39427f4ba26da4400abf3b26b2e58bfc9ebe6")) + + // name: "Get tricky case with replace (thanos)", + // do: func(t *testing.T, g *goEnv, p *testProject) { + // // For Thanos/Prom/k8s etc without replace even go-get or list fails. This should be handled well. + + // Exclude fields. + + // { + // name: "Get tricky case with retract (ginkgo)", + // do: func(t *testing.T, g *goEnv, p *testProject) { + // if goVersion.LessThan(version.Go116) { + // t.Skip("Go version below 1.16 are not understanding go modules with retract directive; skip it.") + // fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/onsi/ginkgo/ginkgo@v1.16.4")) + // } + + // // TODO(bwplotka): Uncomment when https://github.com/githubnemo/CompileDaemon/pull/76 is merged or + // // https://github.com/bwplotka/bingo/issues/31 + // //{ + // // // Regression test against https://github.com/bwplotka/bingo/issues/65. + // // name: "get tool with capital letters in name (pre modules)", + // fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "github.com/githubnemo/CompileDaemon@v1.2.1")) + + // name: "get istio.io/tools/cmd/cue-gen@355a0b7a6ba743d14e3a43a3069287086207f35c (short module base path)", + // do: func(t *testing.T) { + // fmt.Println(g.ExecOutput(t, p.root, bingoPath, "get", "istio.io/tools/cmd/cue-gen@355a0b7a6ba743d14e3a43a3069287086207f35c")) + // }, +} + type row struct { name, binName, pkgVersion, buildEnvVars, buildFlags string } diff --git a/get_e2e_utils_test.go b/get_e2e_utils_test.go index 85aea95..6f13e95 100644 --- a/get_e2e_utils_test.go +++ b/get_e2e_utils_test.go @@ -6,15 +6,14 @@ package main_test import ( "bytes" "fmt" - "io/ioutil" "os" "os/exec" "path/filepath" "strings" "testing" - "github.com/efficientgo/tools/core/pkg/testutil" - "github.com/pkg/errors" + "github.com/efficientgo/core/errors" + "github.com/efficientgo/core/testutil" ) type testProject struct { @@ -62,10 +61,10 @@ func (g *testProject) assertNotChanged(t testing.TB, except ...string) { func (g *testProject) assertGoModDidNotChange(t testing.TB) *testProject { t.Helper() - a, err := ioutil.ReadFile(filepath.Join(g.root, "go.mod")) + a, err := os.ReadFile(filepath.Join(g.root, "go.mod")) testutil.Ok(t, err) - b, err := ioutil.ReadFile(filepath.Join(g.pwd, "testdata", "go.mod")) + b, err := os.ReadFile(filepath.Join(g.pwd, "testdata", "go.mod")) testutil.Ok(t, err) testutil.Equals(t, string(b), string(a)) @@ -76,10 +75,10 @@ func (g *testProject) assertGoModDidNotChange(t testing.TB) *testProject { func (g *testProject) assertGoSumDidNotChange(t testing.TB) *testProject { t.Helper() - a, err := ioutil.ReadFile(filepath.Join(g.root, "go.sum")) + a, err := os.ReadFile(filepath.Join(g.root, "go.sum")) testutil.Ok(t, err) - b, err := ioutil.ReadFile(filepath.Join(g.pwd, "testdata", "go.sum")) + b, err := os.ReadFile(filepath.Join(g.pwd, "testdata", "go.sum")) testutil.Ok(t, err) testutil.Equals(t, string(b), string(a)) @@ -101,7 +100,7 @@ func (g *testProject) assertProjectRootIsClean(t testing.TB, extra ...string) *t expected["main.go"] = struct{}{} } - i, err := ioutil.ReadDir(g.root) + i, err := os.ReadDir(g.root) testutil.Ok(t, err) got := map[string]struct{}{} for _, f := range i { @@ -136,10 +135,10 @@ func execCmd(dir string, env []string, command string, args ...string) (string, cmd.Stderr = &b if err := cmd.Run(); err != nil { if _, ok := err.(*exec.ExitError); ok { - return "", errors.Errorf("error while running command %q; out: %s; err: %v", cmd.String(), b.String(), err) + return "", errors.Newf("error while running command %q; out: %s; err: %v", cmd.String(), b.String(), err) } - return "", errors.Errorf("error while running command %q; out: %s; err: %v", cmd.String(), b.String(), err) + return "", errors.Newf("error while running command %q; out: %s; err: %v", cmd.String(), b.String(), err) } return b.String(), nil } @@ -150,6 +149,8 @@ func buildInitialGobin(t *testing.T, targetDir string) { wd, err := os.Getwd() testutil.Ok(t, err) + testutil.Ok(t, os.Setenv("GOBIN", filepath.Join(wd, ".bin"))) + _, err = execCmd(wd, nil, "make", "build") testutil.Ok(t, err) _, err = execCmd(wd, nil, "cp", filepath.Join(os.Getenv("GOBIN"), bingoBin), targetDir) @@ -165,7 +166,7 @@ func makePath(t *testing.T) string { } func newIsolatedGoEnv(t testing.TB, goproxy string) *goEnv { - tmpDir, err := ioutil.TempDir(os.TempDir(), "bingo-tmpgoenv") + tmpDir, err := os.MkdirTemp(os.TempDir(), "bingo-tmpgoenv") testutil.Ok(t, err) tmpDir, err = filepath.Abs(tmpDir) @@ -193,7 +194,7 @@ func (g *goEnv) Clear(t testing.TB) { _, err := execCmd("", nil, "chmod", "-R", "777", g.tmpDir) testutil.Ok(t, err) - dirs, err := ioutil.ReadDir(g.tmpDir) + dirs, err := os.ReadDir(g.tmpDir) testutil.Ok(t, err) for _, d := range dirs { @@ -239,7 +240,7 @@ func (g *goEnv) existingBinaries(t *testing.T) []string { t.Helper() var filenames []string - files, err := ioutil.ReadDir(g.gobin) + files, err := os.ReadDir(g.gobin) if os.IsNotExist(err) { return []string{} } diff --git a/get_test.go b/get_test.go index d2b4756..3a8514a 100644 --- a/get_test.go +++ b/get_test.go @@ -6,8 +6,8 @@ package main import ( "testing" - "github.com/efficientgo/tools/core/pkg/testutil" - "github.com/pkg/errors" + "github.com/efficientgo/core/errors" + "github.com/efficientgo/core/testutil" ) func TestParseTarget(t *testing.T) { diff --git a/go.mod b/go.mod index 677e67f..c231685 100644 --- a/go.mod +++ b/go.mod @@ -1,16 +1,19 @@ module github.com/bwplotka/bingo -go 1.14 +go 1.17 require ( github.com/Masterminds/semver v1.5.0 - github.com/efficientgo/tools/core v0.0.0-20220225185207-fe763185946b + github.com/efficientgo/core v1.0.0-rc.0 github.com/oklog/run v1.1.0 - github.com/pkg/errors v0.9.1 - github.com/stretchr/testify v1.6.1 // indirect golang.org/x/mod v0.5.1 + mvdan.cc/sh/v3 v3.4.3 +) + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect golang.org/x/sys v0.0.0-20220330033206-e17cdc41300f // indirect golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect - mvdan.cc/sh/v3 v3.4.3 ) diff --git a/go.sum b/go.sum index f6db056..6f08b3c 100644 --- a/go.sum +++ b/go.sum @@ -3,11 +3,10 @@ github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF0 github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.15 h1:cKRCLMj3Ddm54bKSpemfQ8AtYFBhAI2MPmdys22fBdc= github.com/creack/pty v1.1.15/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/efficientgo/tools/core v0.0.0-20220225185207-fe763185946b h1:ZHiD4/yE4idlbqvAO6iYCOYRzOMRpxkW+FKasRA3tsQ= -github.com/efficientgo/tools/core v0.0.0-20220225185207-fe763185946b/go.mod h1:OmVcnJopJL8d3X3sSXTiypGoUSgFq1aDGmlrdi9dn/M= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/efficientgo/core v1.0.0-rc.0/go.mod h1:kQa0V74HNYMfuJH6jiPiwNdpWXl4xd/K4tzlrcvYDQI= github.com/frankban/quicktest v1.13.1 h1:xVm/f9seEhZFL9+n5kv5XLrGwy6elc4V9v/XFY2vmd8= github.com/frankban/quicktest v1.13.1/go.mod h1:NeW+ay9A/U67EYXNFA1nPE8e/tnQv/09mUdL/ijj8og= github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= @@ -23,26 +22,13 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1-0.20210923151022-86f73c517451 h1:d1PiN4RxzIFXCJTvRkvSkKqwtRAl5ZV4lATKtQI0B7I= github.com/rogpeppe/go-internal v1.8.1-0.20210923151022-86f73c517451/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -go.uber.org/goleak v1.1.10 h1:z+mqJhf6ss6BSfSM671tgKyZBFPTTJM+HLxnhPC3wu0= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de h1:5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.5.1 h1:OJxoQ/rynoF0dcCdI7cLPktw/hR2cueqYfjm43oqK38= golang.org/x/mod v0.5.1/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -58,22 +44,14 @@ golang.org/x/term v0.0.0-20210916214954-140adaaadfaf/go.mod h1:jbD1KX2456YbFQfuX golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e h1:aZzprAO9/8oim3qStq3wc1Xuxx4QmAGriC4VU4ojemQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= mvdan.cc/editorconfig v0.2.0/go.mod h1:lvnnD3BNdBYkhq+B4uBuFFKatfp02eB6HixDvEz91C0= mvdan.cc/sh/v3 v3.4.3 h1:zbuKH7YH9cqU6PGajhFFXZY7dhPXcDr55iN/cUAqpuw= mvdan.cc/sh/v3 v3.4.3/go.mod h1:p/tqPPI4Epfk2rICAe2RoaNd8HBSJ8t9Y2DA9yQlbzY= diff --git a/main.go b/main.go index cfa9f95..52c6553 100644 --- a/main.go +++ b/main.go @@ -19,8 +19,8 @@ import ( "github.com/bwplotka/bingo/pkg/bingo" "github.com/bwplotka/bingo/pkg/runner" "github.com/bwplotka/bingo/pkg/version" + "github.com/efficientgo/core/errors" "github.com/oklog/run" - "github.com/pkg/errors" ) func exitOnUsageError(usage func(), v ...interface{}) { @@ -235,7 +235,7 @@ For detailed examples and documentation see: https://github.com/bwplotka/bingo Commands: - get [[@version1 or none,version2,version3...]] + get [[@version1,none,latest,version2,version3...]] %s diff --git a/pkg/bingo/helpers.go b/pkg/bingo/helpers.go index 1f0ab50..a25f71e 100644 --- a/pkg/bingo/helpers.go +++ b/pkg/bingo/helpers.go @@ -8,7 +8,7 @@ import ( "path/filepath" "text/template" - "github.com/pkg/errors" + "github.com/efficientgo/core/errors" ) // RemoveHelpers deletes helpers from mod directory. diff --git a/pkg/bingo/mod.go b/pkg/bingo/mod.go index 08085af..6a995d0 100644 --- a/pkg/bingo/mod.go +++ b/pkg/bingo/mod.go @@ -17,9 +17,9 @@ import ( "github.com/bwplotka/bingo/pkg/envars" "github.com/bwplotka/bingo/pkg/runner" - "github.com/efficientgo/tools/core/pkg/errcapture" - "github.com/efficientgo/tools/core/pkg/merrors" - "github.com/pkg/errors" + "github.com/efficientgo/core/errcapture" + "github.com/efficientgo/core/errors" + "github.com/efficientgo/core/merrors" "golang.org/x/mod/modfile" "golang.org/x/mod/module" ) @@ -280,6 +280,10 @@ func parseDirectPackageMeta(line string) (relPath string, buildEnv []string, bui return relPath, buildEnv, buildFlags } +func (mf *ModFile) ChangeGoVersion(version string) { + mf.m.Go.Version = version +} + func (mf *ModFile) DirectPackage() *Package { return mf.directPackage } @@ -406,7 +410,7 @@ func ModDirectPackage(modFile string) (pkg Package, err error) { defer errcapture.Do(&err, mf.Close, "close") if mf.directPackage == nil { - return Package{}, errors.Errorf("no direct package found in %s; empty module?", mf.filename) + return Package{}, errors.Newf("no direct package found in %s; empty module?", mf.filename) } return *mf.directPackage, nil } @@ -438,19 +442,19 @@ func onModHeaderComments(m *modfile.File, f func(*modfile.Comments) error) error return errors.New("failed to parse; no module's syntax") } if m.Module.Syntax.Comment() == nil { - return errors.Errorf("expected %q comment on top of module, found no comment", metaComment) + return errors.Newf("expected %q comment on top of module, found no comment", metaComment) } return f(m.Module.Syntax.Comment()) } func errOnMetaMissing(comments *modfile.Comments) error { if len(comments.Suffix) == 0 { - return errors.Errorf("expected %q comment on top of module, found no comment", metaComment) + return errors.Newf("expected %q comment on top of module, found no comment", metaComment) } tr := strings.Trim(comments.Suffix[0].Token, "\n") if tr != metaComment { - return errors.Errorf("expected %q comment on top of module, found %q", metaComment, tr) + return errors.Newf("expected %q comment on top of module, found %q", metaComment, tr) } return nil } @@ -517,7 +521,7 @@ func (pkgs PackageRenderables) PrintTab(target string, w io.Writer) error { } if target != "" { - return errors.Errorf("Pinned tool %s not found", target) + return errors.Newf("Pinned tool %s not found", target) } return nil } diff --git a/pkg/bingo/mod_test.go b/pkg/bingo/mod_test.go index 59cd251..3e61f8d 100644 --- a/pkg/bingo/mod_test.go +++ b/pkg/bingo/mod_test.go @@ -13,7 +13,7 @@ import ( "testing" "github.com/bwplotka/bingo/pkg/runner" - "github.com/efficientgo/tools/core/pkg/testutil" + "github.com/efficientgo/core/testutil" "golang.org/x/mod/module" ) diff --git a/pkg/envars/eval.go b/pkg/envars/eval.go index b6243b5..40b3b68 100644 --- a/pkg/envars/eval.go +++ b/pkg/envars/eval.go @@ -13,7 +13,7 @@ import ( "strings" "text/scanner" - "github.com/pkg/errors" + "github.com/efficientgo/core/errors" "mvdan.cc/sh/v3/expand" "mvdan.cc/sh/v3/interp" "mvdan.cc/sh/v3/syntax" diff --git a/pkg/envars/eval_test.go b/pkg/envars/eval_test.go index ce4a191..ed0b4e9 100644 --- a/pkg/envars/eval_test.go +++ b/pkg/envars/eval_test.go @@ -10,7 +10,7 @@ import ( "os" "testing" - "github.com/efficientgo/tools/core/pkg/testutil" + "github.com/efficientgo/core/testutil" ) func TestEval(t *testing.T) { diff --git a/pkg/gomodcache/cache.go b/pkg/gomodcache/cache.go deleted file mode 100644 index fb6221d..0000000 --- a/pkg/gomodcache/cache.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package gomodcache - -import ( - "os" - "os/exec" - - "github.com/bwplotka/bingo/pkg/envars" - "github.com/efficientgo/tools/core/pkg/merrors" - "github.com/pkg/errors" -) - -const URL = "http://localhost:3000" - -// TODO(bwplotka): Adding this code only slows down get_e2e_test.go -// Investigate. -// See 8d757f35b63be8ae76aa0bd3c3c5c4481114055b for details. -func Start(athensBin string, cacheDir string) (func() error, error) { - env := envars.EnvSlice(os.Environ()) - - // Format: https://raw.githubusercontent.com/gomods/athens/main/config.dev.toml. - env.Set( - "ATHENS_LOG_LEVEL="+"error", - "ATHENS_GO_BINARY_ENV_VARS=\"[GOPROXY=https://proxy.golang.org]\"", - ) - - if cacheDir != "" { - if err := os.MkdirAll(cacheDir, os.ModePerm); err != nil { - return nil, err - } - env.Set( - "ATHENS_DISK_STORAGE_ROOT="+cacheDir, - "ATHENS_STORAGE_TYPE="+"disk", - ) - } - - c := exec.Command(athensBin) - c.Env = env - c.Stdout = os.Stdout - c.Stderr = os.Stdout - - errc := make(chan error) - go func() { - errc <- c.Run() - close(errc) - }() - - return func() error { - select { - case err := <-errc: - return errors.Errorf("proxy command unexpectedly went down; err: %v", err) - default: - } - - merr := merrors.New() - if c.Process != nil { - merr.Add(c.Process.Kill()) - } - - <-errc - return merr.Err() - }, nil -} diff --git a/pkg/makefile/parser.go b/pkg/makefile/parser.go index 1d81227..c5d7d0b 100644 --- a/pkg/makefile/parser.go +++ b/pkg/makefile/parser.go @@ -10,7 +10,7 @@ import ( "path/filepath" "strings" - "github.com/pkg/errors" + "github.com/efficientgo/core/errors" ) // Copied from https://github.com/tj/mmake/blob/b15229aac1a8ea3f0875f064a0864f7250bd7850/parser & improved. diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index 597a6f8..6c6b54f 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -18,7 +18,7 @@ import ( "github.com/Masterminds/semver" "github.com/bwplotka/bingo/pkg/envars" "github.com/bwplotka/bingo/pkg/version" - "github.com/pkg/errors" + "github.com/efficientgo/core/errors" ) // Runner allows to run certain commands against module aware Go CLI. @@ -39,7 +39,7 @@ var versionRegexp = regexp.MustCompile(`go?([0-9]+)(\.[0-9]+)?(\.[0-9]+)?`) func parseGoVersion(goVersionOutput string) (*semver.Version, error) { el := strings.Fields(strings.TrimRight(goVersionOutput, "\n")) if len(el) < 2 { - return nil, errors.Errorf("unexpected go version output; expected 'go version go ...; found %v", strings.TrimRight(goVersionOutput, "\n")) + return nil, errors.Newf("unexpected go version output; expected 'go version go ...; found %v", strings.TrimRight(goVersionOutput, "\n")) } goVersion := versionRegexp.FindString(el[2]) if goVersion == "" { @@ -52,7 +52,7 @@ func isSupportedVersion(v *semver.Version) error { if !v.LessThan(version.Go114) { return nil } - return errors.Errorf("found unsupported go version: %v; requires go 1.14.x or higher", v.String()) + return errors.Newf("found unsupported go version: %v; requires go 1.14.x or higher", v.String()) } // NewRunner checks Go version compatibility then returns Runner. @@ -122,11 +122,11 @@ func (r *Runner) exec(ctx context.Context, output io.Writer, e envars.EnvSlice, if err := cmd.Run(); err != nil { if _, ok := err.(*exec.ExitError); ok { if r.verbose { - return errors.Errorf("error while running command '%s %s'; err: %v", command, strings.Join(args, " "), err) + return errors.Newf("error while running command '%s %s'; err: %v", command, strings.Join(args, " "), err) } return errors.New("exit 1") } - return errors.Errorf("error while running command '%s %s'; err: %v", command, strings.Join(args, " "), err) + return errors.Newf("error while running command '%s %s'; err: %v", command, strings.Join(args, " "), err) } if r.verbose { r.logger.Printf("exec '%s %s'\n", command, strings.Join(args, " ")) diff --git a/pkg/runner/runner_test.go b/pkg/runner/runner_test.go index 254f25f..69c94e4 100644 --- a/pkg/runner/runner_test.go +++ b/pkg/runner/runner_test.go @@ -6,9 +6,9 @@ package runner import ( "testing" - "github.com/efficientgo/tools/core/pkg/merrors" - "github.com/efficientgo/tools/core/pkg/testutil" - "github.com/pkg/errors" + "github.com/efficientgo/core/errors" + "github.com/efficientgo/core/merrors" + "github.com/efficientgo/core/testutil" ) func TestParseAndIsSupportedVersion(t *testing.T) { diff --git a/pkg/version/version.go b/pkg/version/version.go index 30f8f30..4878873 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -6,7 +6,7 @@ package version import "github.com/Masterminds/semver" // Version returns 'bingo' version. -const Version = "v0.6" +const Version = "v0.7" var ( Go114 = semver.MustParse("1.14") diff --git a/testdata/Makefile b/testdata/Makefile index f4e718a..d924b12 100644 --- a/testdata/Makefile +++ b/testdata/Makefile @@ -1,16 +1,11 @@ include .bingo/Variables.mk -faillint-exists: $(FAILLINT) - @echo "checking faillint" - @test $(FAILLINT) || (echo "no var" && exit 1) - @test -f $(FAILLINT) || (echo "no file" && exit 1) +buildable-v2-exists: $(BUILDABLE_V2) + @echo "checking buildable-v2" + @test $(BUILDABLE_V2) || (echo "no var" && exit 1) + @test -f $(BUILDABLE_V2) || (echo "no file" && exit 1) -buildable-exists: $(BUILDABLE) - @echo "checking buildable" - @test $(BUILDABLE) || (echo "no var" && exit 1) - @test -f $(BUILDABLE) || (echo "no file" && exit 1) - -wr_buildable-exists: $(WR_BUILDABLE) - @echo "checking wr_buildable" - @test $(WR_BUILDABLE) || (echo "no var" && exit 1) - @test -f $(WR_BUILDABLE) || (echo "no file" && exit 1) +buildable-withreplace-exists: $(BUILDABLE_WITHREPLACE) + @echo "checking buildable-with-replace" + @test $(BUILDABLE_WITHREPLACE) || (echo "no var" && exit 1) + @test -f $(BUILDABLE_WITHREPLACE) || (echo "no file" && exit 1) diff --git a/testdata/go.mod b/testdata/go.mod index dec1eea..aca8f8e 100644 --- a/testdata/go.mod +++ b/testdata/go.mod @@ -1,8 +1,8 @@ module testproject -go 1.14 +go 1.19 require ( + github.com/efficientgo/core v1.0.0-rc.0 github.com/oklog/run v1.1.0 - github.com/pkg/errors v0.9.1 ) diff --git a/testdata/go.sum b/testdata/go.sum index e6bec11..e39f3e3 100644 --- a/testdata/go.sum +++ b/testdata/go.sum @@ -1,4 +1,5 @@ +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/efficientgo/core v1.0.0-rc.0/go.mod h1:kQa0V74HNYMfuJH6jiPiwNdpWXl4xd/K4tzlrcvYDQI= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/main.go b/testdata/main.go index 61c2bce..c9c191d 100644 --- a/testdata/main.go +++ b/testdata/main.go @@ -4,6 +4,6 @@ package testdata import ( + _ "github.com/efficientgo/core/errors" _ "github.com/oklog/run" - _ "github.com/pkg/errors" ) diff --git a/testdata/module/buildable/main.go b/testdata/module/buildable/main.go deleted file mode 100644 index 5e9ac13..0000000 --- a/testdata/module/buildable/main.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package main - -import ( - "log" - - "github.com/bwplotka/bingo/testdata/module" - "github.com/oklog/run" - "github.com/pkg/errors" -) - -func main() { - log.SetFlags(0) - - g := run.Group{} - if err := g.Run(); err != nil { - log.Fatal(errors.Wrap(err, "run")) - } - log.Println("module.buildable", module.Version) -} diff --git a/testdata/module/buildable2/main.go b/testdata/module/buildable2/main.go deleted file mode 100644 index be538de..0000000 --- a/testdata/module/buildable2/main.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package main - -import ( - "log" - - "github.com/bwplotka/bingo/testdata/module" - "github.com/oklog/run" - "github.com/pkg/errors" -) - -func main() { - log.SetFlags(0) - - g := run.Group{} - if err := g.Run(); err != nil { - log.Fatal(errors.Wrap(err, "run")) - } - log.Println("module.buildable2", module.Version) -} diff --git a/testdata/module/go.mod b/testdata/module/go.mod deleted file mode 100644 index 300b602..0000000 --- a/testdata/module/go.mod +++ /dev/null @@ -1,8 +0,0 @@ -module github.com/bwplotka/bingo/testdata/module - -go 1.15 - -require ( - github.com/oklog/run v1.1.0 - github.com/pkg/errors v0.9.1 -) diff --git a/testdata/module/go.sum b/testdata/module/go.sum deleted file mode 100644 index e6bec11..0000000 --- a/testdata/module/go.sum +++ /dev/null @@ -1,4 +0,0 @@ -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/module/not-buildable/main.go b/testdata/module/not-buildable/main.go deleted file mode 100644 index d6d84e4..0000000 --- a/testdata/module/not-buildable/main.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package notmain - -import ( - "log" - - "github.com/oklog/run" - "github.com/pkg/errors" -) - -func main() { - log.SetFlags(0) - - g := run.Group{} - if err := g.Run(); err != nil { - log.Fatal(errors.Wrap(err, "run")) - } - log.Println("it might look like buildable but it's not - non main package.") -} diff --git a/testdata/module/not-buildable2/main.go b/testdata/module/not-buildable2/main.go deleted file mode 100644 index 804dc74..0000000 --- a/testdata/module/not-buildable2/main.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package main - -import ( - "log" - - "github.com/oklog/run" - "github.com/pkg/errors" -) - -func not_main() { - log.SetFlags(0) - - g := run.Group{} - if err := g.Run(); err != nil { - log.Fatal(errors.Wrap(err, "run")) - } - log.Println("it might look like buildable but it's not - no main package.") -} diff --git a/testdata/module/yolo.go b/testdata/module/yolo.go deleted file mode 100644 index c644a93..0000000 --- a/testdata/module/yolo.go +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package module - -import "github.com/pkg/errors" - -const Version = "2.1" - -func Yolo() error { - return errors.Errorf("some error") -} diff --git a/testdata/module_with_replace/buildable/main.go b/testdata/module_with_replace/buildable/main.go deleted file mode 100644 index 31d76f8..0000000 --- a/testdata/module_with_replace/buildable/main.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package main - -import ( - "log" - - module "github.com/bwplotka/bingo/testdata/module_with_replace" - errors "github.com/efficientgo/tools/copyright" - - "github.com/oklog/run" -) - -func main() { - log.SetFlags(0) - - g := run.Group{} - if err := g.Run(); err != nil { - log.Fatal(errors.Wrap(err, "run")) - } - log.Println("module_with_replace.buildable", module.Version) -} diff --git a/testdata/module_with_replace/buildable2/main.go b/testdata/module_with_replace/buildable2/main.go deleted file mode 100644 index 56430c4..0000000 --- a/testdata/module_with_replace/buildable2/main.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package main - -import ( - "log" - - module "github.com/bwplotka/bingo/testdata/module_with_replace" - errors "github.com/efficientgo/tools/copyright" - - "github.com/oklog/run" -) - -func main() { - log.SetFlags(0) - - g := run.Group{} - if err := g.Run(); err != nil { - log.Fatal(errors.Wrap(err, "run")) - } - log.Println("module_with_replace.buildable2", module.Version) -} diff --git a/testdata/module_with_replace/go.mod b/testdata/module_with_replace/go.mod deleted file mode 100644 index db6764b..0000000 --- a/testdata/module_with_replace/go.mod +++ /dev/null @@ -1,10 +0,0 @@ -module github.com/bwplotka/bingo/testdata/module_with_replace - -go 1.15 - -require ( - github.com/efficientgo/tools/copyright v0.0.0-20210109155620-3d3e7cfcbe22 - github.com/oklog/run v1.1.0 -) - -replace github.com/efficientgo/tools/copyright => github.com/pkg/errors v0.9.1 // For testing purposes, don't judge (: diff --git a/testdata/module_with_replace/go.sum b/testdata/module_with_replace/go.sum deleted file mode 100644 index aaffe50..0000000 --- a/testdata/module_with_replace/go.sum +++ /dev/null @@ -1,5 +0,0 @@ -github.com/efficientgo/tools v0.0.0-20210109155620-3d3e7cfcbe22 h1:LIQf3tMOuxHEhcLc3xHpzaUD7+I5ue31ynfCCSydGiU= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/module_with_replace/not-buildable/main.go b/testdata/module_with_replace/not-buildable/main.go deleted file mode 100644 index 087fa4a..0000000 --- a/testdata/module_with_replace/not-buildable/main.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package notmain - -import ( - "log" - - errors "github.com/efficientgo/tools/copyright" - - "github.com/oklog/run" -) - -func main() { - log.SetFlags(0) - - g := run.Group{} - if err := g.Run(); err != nil { - log.Fatal(errors.Wrap(err, "run")) - } - log.Println("it might look like buildable but it's not - non main package.") -} diff --git a/testdata/module_with_replace/not-buildable2/main.go b/testdata/module_with_replace/not-buildable2/main.go deleted file mode 100644 index 1b7cbc3..0000000 --- a/testdata/module_with_replace/not-buildable2/main.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package main - -import ( - "log" - - errors "github.com/efficientgo/tools/copyright" - - "github.com/oklog/run" -) - -func not_main() { - log.SetFlags(0) - - g := run.Group{} - if err := g.Run(); err != nil { - log.Fatal(errors.Wrap(err, "run")) - } - log.Println("it might look like buildable but it's not - no main package.") -} diff --git a/testdata/module_with_replace/yolo.go b/testdata/module_with_replace/yolo.go deleted file mode 100644 index 5769e10..0000000 --- a/testdata/module_with_replace/yolo.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) Bartłomiej Płotka @bwplotka -// Licensed under the Apache License 2.0. - -package module - -import ( - errors "github.com/efficientgo/tools/copyright" -) - -const Version = "2.8" - -func Yolo() error { - return errors.Errorf("some error") -} diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/README.md b/testdata/testproject_with_bingo_v0_1_1/.bingo/README.md deleted file mode 100755 index c9d73dc..0000000 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# Development Dependencies. - -This is directory which stores Go modules for each tools that is used within this repository, managed by https://github.com/bwplotka/bingo. - -## Requirements - -* Network (: -* Go 1.14+ - -## Usage - -Just run `go get -modfile /.bingo/.mod`to install tool in required version in your $(GOBIN). - -### Within Makefile - -Use $() variable where is the /.bingo/.mod. - -This directory is managed by bingo tool. - -* Run `go get -modfile /.bingo/bingo.mod` if you did not before to install bingo. -* Run `bingo get` to install all tools in this directory. -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_1_1/.bingo/Variables.mk deleted file mode 100644 index aac9dc2..0000000 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/Variables.mk +++ /dev/null @@ -1,75 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.1.1. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for copyright variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # (If not generated automatically by bingo). -# -#command: $(COPYRIGHT) -# @echo "Running copyright" -# @$(COPYRIGHT) -# -F2_ARRAY ?= $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): .bingo/f2.mod .bingo/f2.1.mod .bingo/f2.2.mod .bingo/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd .bingo && $(GO) build -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd .bingo && $(GO) build -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd .bingo && $(GO) build -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd .bingo && $(GO) build -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" -.bingo/f2.mod: ; -.bingo/f2.1.mod: ; -.bingo/f2.2.mod: ; -.bingo/f2.3.mod: ; - -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): .bingo/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd .bingo && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" -.bingo/buildable.mod: ; - -FAILLINT ?= $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): .bingo/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd .bingo && $(GO) build -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" -.bingo/faillint.mod: ; - -GO_BINDATA ?= $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): .bingo/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd .bingo && $(GO) build -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" -.bingo/go-bindata.mod: ; - -GOIMPORTS ?= $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 -$(GOIMPORTS): .bingo/goimports.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375" - @cd .bingo && $(GO) build -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 "golang.org/x/tools/cmd/goimports" -.bingo/goimports.mod: ; - -GOIMPORTS2 ?= $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 -$(GOIMPORTS2): .bingo/goimports2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533" - @cd .bingo && $(GO) build -modfile=goimports2.mod -o=$(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 "golang.org/x/tools/cmd/goimports" -.bingo/goimports2.mod: ; - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): .bingo/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd .bingo && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" -.bingo/wr_buildable.mod: ; \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable.mod deleted file mode 100644 index 27db7ff..0000000 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable2.mod deleted file mode 100644 index 82c8695..0000000 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable_old.mod deleted file mode 100644 index daa7be8..0000000 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_1_1/.bingo/faillint.mod deleted file mode 100644 index 9f8b2cc..0000000 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/faillint.mod +++ /dev/null @@ -1,8 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require ( - dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 // indirect - github.com/fatih/faillint v1.3.0 -) diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_1_1/.bingo/go-bindata.mod deleted file mode 100644 index 4ed1983..0000000 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_1_1/.bingo/wr_buildable.mod deleted file mode 100644 index f5ef537..0000000 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_2_0/.bingo/.gitignore deleted file mode 100644 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/README.md b/testdata/testproject_with_bingo_v0_2_0/.bingo/README.md deleted file mode 100644 index 70f9286..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_2_0/.bingo/Variables.mk deleted file mode 100644 index 30ebea2..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/Variables.mk +++ /dev/null @@ -1,65 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.0. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for faillint variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(FAILLINT) -# @echo "Running faillint" -# @$(FAILLINT) -# -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): .bingo/f2.mod .bingo/f2.1.mod .bingo/f2.2.mod .bingo/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd .bingo && $(GO) build -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd .bingo && $(GO) build -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd .bingo && $(GO) build -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd .bingo && $(GO) build -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): .bingo/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd .bingo && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): .bingo/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd .bingo && $(GO) build -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): .bingo/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd .bingo && $(GO) build -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -GOIMPORTS := $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 -$(GOIMPORTS): .bingo/goimports.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375" - @cd .bingo && $(GO) build -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 "golang.org/x/tools/cmd/goimports" - -GOIMPORTS2 := $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 -$(GOIMPORTS2): .bingo/goimports2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533" - @cd .bingo && $(GO) build -modfile=goimports2.mod -o=$(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 "golang.org/x/tools/cmd/goimports" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): .bingo/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd .bingo && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable.mod deleted file mode 100644 index 27db7ff..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable2.mod deleted file mode 100644 index 82c8695..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable_old.mod deleted file mode 100644 index daa7be8..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.1.mod deleted file mode 100644 index a86b191..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.2.mod deleted file mode 100644 index c43054c..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.3.mod deleted file mode 100644 index 5a191fc..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.mod deleted file mode 100644 index 304af0e..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/faillint.mod deleted file mode 100644 index 9f8b2cc..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/faillint.mod +++ /dev/null @@ -1,8 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require ( - dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 // indirect - github.com/fatih/faillint v1.3.0 -) diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/go-bindata.mod deleted file mode 100644 index 4ed1983..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/go.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/go.mod deleted file mode 100644 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/variables.env b/testdata/testproject_with_bingo_v0_2_0/.bingo/variables.env deleted file mode 100644 index 958f00f..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/variables.env +++ /dev/null @@ -1,12 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.0. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -l - - -FAILLINT= "$(go env GOBIN)/faillint-v1.3.0" - -GOIMPORTS= "$(go env GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375" - -GOIMPORTS2= "$(go env GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533" - diff --git a/testdata/testproject_with_bingo_v0_2_0/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_2_0/.bingo/wr_buildable.mod deleted file mode 100644 index f5ef537..0000000 --- a/testdata/testproject_with_bingo_v0_2_0/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_2_1/.bingo/.gitignore deleted file mode 100644 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/README.md b/testdata/testproject_with_bingo_v0_2_1/.bingo/README.md deleted file mode 100644 index 70f9286..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_2_1/.bingo/Variables.mk deleted file mode 100644 index 1f03969..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/Variables.mk +++ /dev/null @@ -1,65 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.1. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for faillint variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(FAILLINT) -# @echo "Running faillint" -# @$(FAILLINT) -# -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): .bingo/f2.mod .bingo/f2.1.mod .bingo/f2.2.mod .bingo/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd .bingo && $(GO) build -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd .bingo && $(GO) build -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd .bingo && $(GO) build -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd .bingo && $(GO) build -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): .bingo/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd .bingo && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): .bingo/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd .bingo && $(GO) build -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): .bingo/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd .bingo && $(GO) build -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -GOIMPORTS := $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 -$(GOIMPORTS): .bingo/goimports.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375" - @cd .bingo && $(GO) build -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 "golang.org/x/tools/cmd/goimports" - -GOIMPORTS2 := $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 -$(GOIMPORTS2): .bingo/goimports2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533" - @cd .bingo && $(GO) build -modfile=goimports2.mod -o=$(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 "golang.org/x/tools/cmd/goimports" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): .bingo/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd .bingo && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable.mod deleted file mode 100644 index 27db7ff..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable2.mod deleted file mode 100644 index 82c8695..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable_old.mod deleted file mode 100644 index daa7be8..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.1.mod deleted file mode 100644 index a86b191..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.2.mod deleted file mode 100644 index c43054c..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.3.mod deleted file mode 100644 index 5a191fc..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.mod deleted file mode 100644 index 304af0e..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/faillint.mod deleted file mode 100644 index 9f8b2cc..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/faillint.mod +++ /dev/null @@ -1,8 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require ( - dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 // indirect - github.com/fatih/faillint v1.3.0 -) diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/go-bindata.mod deleted file mode 100644 index 4ed1983..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/go.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/go.mod deleted file mode 100644 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/variables.env b/testdata/testproject_with_bingo_v0_2_1/.bingo/variables.env deleted file mode 100644 index 69bdb44..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/variables.env +++ /dev/null @@ -1,16 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.1. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -local gobin=$(go env GOBIN) - -if [ -z "$gobin" ]; then - gobin="$(go env GOPATH)/bin" -fi - - -FAILLINT="${gobin}/faillint-v1.3.0" - -GOIMPORTS="${gobin}/goimports-v0.0.0-20200522201501-cb1345f3a375" - -GOIMPORTS2="${gobin}/goimports2-v0.0.0-20200519175826-7521f6f42533" - diff --git a/testdata/testproject_with_bingo_v0_2_1/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_2_1/.bingo/wr_buildable.mod deleted file mode 100644 index f5ef537..0000000 --- a/testdata/testproject_with_bingo_v0_2_1/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_2_2/.bingo/.gitignore deleted file mode 100755 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/README.md b/testdata/testproject_with_bingo_v0_2_2/.bingo/README.md deleted file mode 100755 index 70f9286..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_2_2/.bingo/Variables.mk deleted file mode 100644 index 6852fef..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/Variables.mk +++ /dev/null @@ -1,65 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.2. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for f2 variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(F2_ARRAY) -# @echo "Running f2" -# @$(F2_ARRAY) -# -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): .bingo/f2.mod .bingo/f2.1.mod .bingo/f2.2.mod .bingo/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd .bingo && $(GO) build -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd .bingo && $(GO) build -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd .bingo && $(GO) build -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd .bingo && $(GO) build -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): .bingo/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd .bingo && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): .bingo/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd .bingo && $(GO) build -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): .bingo/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd .bingo && $(GO) build -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -GOIMPORTS := $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 -$(GOIMPORTS): .bingo/goimports.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375" - @cd .bingo && $(GO) build -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 "golang.org/x/tools/cmd/goimports" - -GOIMPORTS2 := $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 -$(GOIMPORTS2): .bingo/goimports2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533" - @cd .bingo && $(GO) build -modfile=goimports2.mod -o=$(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 "golang.org/x/tools/cmd/goimports" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): .bingo/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd .bingo && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable.mod deleted file mode 100644 index 27db7ff..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable2.mod deleted file mode 100644 index 82c8695..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable_old.mod deleted file mode 100644 index daa7be8..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.1.mod deleted file mode 100644 index a86b191..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.2.mod deleted file mode 100644 index c43054c..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.3.mod deleted file mode 100644 index 5a191fc..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.mod deleted file mode 100644 index 304af0e..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/faillint.mod deleted file mode 100644 index 9f8b2cc..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/faillint.mod +++ /dev/null @@ -1,8 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require ( - dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 // indirect - github.com/fatih/faillint v1.3.0 -) diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/go-bindata.mod deleted file mode 100644 index 4ed1983..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/go.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/go.mod deleted file mode 100755 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/variables.env b/testdata/testproject_with_bingo_v0_2_2/.bingo/variables.env deleted file mode 100644 index c6c8e80..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/variables.env +++ /dev/null @@ -1,20 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.2. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -local gobin=$(go env GOBIN) - -if [ -z "$gobin" ]; then - gobin="$(go env GOPATH)/bin" -fi - - -F2_ARRAY="${gobin}/f2-v1.5.0${gobin}/f2-v1.1.0${gobin}/f2-v1.2.0${gobin}/f2-v1.0.0" - -FAILLINT="${gobin}/faillint-v1.3.0" - -GO_BINDATA="${gobin}/go-bindata-v3.1.1+incompatible" - -GOIMPORTS="${gobin}/goimports-v0.0.0-20200522201501-cb1345f3a375" - -GOIMPORTS2="${gobin}/goimports2-v0.0.0-20200519175826-7521f6f42533" - diff --git a/testdata/testproject_with_bingo_v0_2_2/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_2_2/.bingo/wr_buildable.mod deleted file mode 100644 index f5ef537..0000000 --- a/testdata/testproject_with_bingo_v0_2_2/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_2_3/.bingo/.gitignore deleted file mode 100755 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/README.md b/testdata/testproject_with_bingo_v0_2_3/.bingo/README.md deleted file mode 100755 index 70f9286..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_2_3/.bingo/Variables.mk deleted file mode 100644 index 42b3afc..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/Variables.mk +++ /dev/null @@ -1,65 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.3. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for f2 variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(F2_ARRAY) -# @echo "Running f2" -# @$(F2_ARRAY) -# -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): .bingo/f2.mod .bingo/f2.1.mod .bingo/f2.2.mod .bingo/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd .bingo && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd .bingo && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd .bingo && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd .bingo && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): .bingo/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd .bingo && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): .bingo/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd .bingo && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): .bingo/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd .bingo && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -GOIMPORTS := $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 -$(GOIMPORTS): .bingo/goimports.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375" - @cd .bingo && $(GO) build -mod=mod -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 "golang.org/x/tools/cmd/goimports" - -GOIMPORTS2 := $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 -$(GOIMPORTS2): .bingo/goimports2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533" - @cd .bingo && $(GO) build -mod=mod -modfile=goimports2.mod -o=$(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 "golang.org/x/tools/cmd/goimports" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): .bingo/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd .bingo && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable.mod deleted file mode 100644 index 27db7ff..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable2.mod deleted file mode 100644 index 82c8695..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable_old.mod deleted file mode 100644 index daa7be8..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.1.mod deleted file mode 100644 index a86b191..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.2.mod deleted file mode 100644 index c43054c..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.3.mod deleted file mode 100644 index 5a191fc..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.mod deleted file mode 100644 index 304af0e..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/faillint.mod deleted file mode 100644 index 9f8b2cc..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/faillint.mod +++ /dev/null @@ -1,8 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require ( - dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 // indirect - github.com/fatih/faillint v1.3.0 -) diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/go-bindata.mod deleted file mode 100644 index 4ed1983..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/go.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/go.mod deleted file mode 100755 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/variables.env b/testdata/testproject_with_bingo_v0_2_3/.bingo/variables.env deleted file mode 100644 index c44bb50..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/variables.env +++ /dev/null @@ -1,20 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.3. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -local gobin=$(go env GOBIN) - -if [ -z "$gobin" ]; then - gobin="$(go env GOPATH)/bin" -fi - - -F2_ARRAY="${gobin}/f2-v1.5.0${gobin}/f2-v1.1.0${gobin}/f2-v1.2.0${gobin}/f2-v1.0.0" - -FAILLINT="${gobin}/faillint-v1.3.0" - -GO_BINDATA="${gobin}/go-bindata-v3.1.1+incompatible" - -GOIMPORTS="${gobin}/goimports-v0.0.0-20200522201501-cb1345f3a375" - -GOIMPORTS2="${gobin}/goimports2-v0.0.0-20200519175826-7521f6f42533" - diff --git a/testdata/testproject_with_bingo_v0_2_3/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_2_3/.bingo/wr_buildable.mod deleted file mode 100644 index f5ef537..0000000 --- a/testdata/testproject_with_bingo_v0_2_3/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_2_4/.bingo/.gitignore deleted file mode 100755 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/README.md b/testdata/testproject_with_bingo_v0_2_4/.bingo/README.md deleted file mode 100755 index 70f9286..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_2_4/.bingo/Variables.mk deleted file mode 100644 index 40e7aa0..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/Variables.mk +++ /dev/null @@ -1,65 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.4. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for f2 variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(F2_ARRAY) -# @echo "Running f2" -# @$(F2_ARRAY) -# -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): .bingo/f2.mod .bingo/f2.1.mod .bingo/f2.2.mod .bingo/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd .bingo && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd .bingo && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd .bingo && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd .bingo && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): .bingo/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd .bingo && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): .bingo/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd .bingo && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): .bingo/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd .bingo && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -GOIMPORTS := $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 -$(GOIMPORTS): .bingo/goimports.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375" - @cd .bingo && $(GO) build -mod=mod -modfile=goimports.mod -o=$(GOBIN)/goimports-v0.0.0-20200522201501-cb1345f3a375 "golang.org/x/tools/cmd/goimports" - -GOIMPORTS2 := $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 -$(GOIMPORTS2): .bingo/goimports2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533" - @cd .bingo && $(GO) build -mod=mod -modfile=goimports2.mod -o=$(GOBIN)/goimports2-v0.0.0-20200519175826-7521f6f42533 "golang.org/x/tools/cmd/goimports" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): .bingo/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd .bingo && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable.mod deleted file mode 100644 index 27db7ff..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable2.mod deleted file mode 100644 index 82c8695..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable_old.mod deleted file mode 100644 index daa7be8..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.1.mod deleted file mode 100644 index a86b191..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.2.mod deleted file mode 100644 index c43054c..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.3.mod deleted file mode 100644 index 5a191fc..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.mod deleted file mode 100644 index 304af0e..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/faillint.mod deleted file mode 100644 index 9f8b2cc..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/faillint.mod +++ /dev/null @@ -1,8 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require ( - dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 // indirect - github.com/fatih/faillint v1.3.0 -) diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/go-bindata.mod deleted file mode 100644 index 4ed1983..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.14 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/go.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/go.mod deleted file mode 100755 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/variables.env b/testdata/testproject_with_bingo_v0_2_4/.bingo/variables.env deleted file mode 100644 index 9ea938f..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/variables.env +++ /dev/null @@ -1,20 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.2.4. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -GOBIN=${GOBIN:=$(go env GOBIN)} - -if [ -z "$GOBIN" ]; then - GOBIN="$(go env GOPATH)/bin" -fi - - -F2_ARRAY="${GOBIN}/f2-v1.5.0${GOBIN}/f2-v1.1.0${GOBIN}/f2-v1.2.0${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -GOIMPORTS="${GOBIN}/goimports-v0.0.0-20200522201501-cb1345f3a375" - -GOIMPORTS2="${GOBIN}/goimports2-v0.0.0-20200519175826-7521f6f42533" - diff --git a/testdata/testproject_with_bingo_v0_2_4/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_2_4/.bingo/wr_buildable.mod deleted file mode 100644 index f5ef537..0000000 --- a/testdata/testproject_with_bingo_v0_2_4/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_3_0/.bingo/.gitignore deleted file mode 100755 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_3_0/.bingo/Variables.mk deleted file mode 100644 index 9d4563b..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/Variables.mk +++ /dev/null @@ -1,67 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.0. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for buildable variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(BUILDABLE) -# @echo "Running buildable" -# @$(BUILDABLE) -# -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): $(BINGO_DIR)/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable2" - -BUILDABLE_OLD := $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE_OLD): $(BINGO_DIR)/buildable_old.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable_old.mod -o=$(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable" - -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): $(BINGO_DIR)/f2.mod $(BINGO_DIR)/f2.1.mod $(BINGO_DIR)/f2.2.mod $(BINGO_DIR)/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): $(BINGO_DIR)/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): $(BINGO_DIR)/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" - diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable.mod deleted file mode 100644 index 27db7ff..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable2.mod deleted file mode 100644 index 82c8695..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable_old.mod deleted file mode 100644 index daa7be8..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.1.mod deleted file mode 100644 index ba5f2d3..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.2.mod deleted file mode 100644 index c7dc4e2..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.3.mod deleted file mode 100644 index 32d04e4..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.mod deleted file mode 100644 index 77e59ce..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/faillint.mod deleted file mode 100644 index dd16b6a..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/faillint.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.3.0 diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/go-bindata.mod deleted file mode 100644 index 5b8e7b9..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/go.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/go.mod deleted file mode 100755 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/variables.env b/testdata/testproject_with_bingo_v0_3_0/.bingo/variables.env deleted file mode 100644 index 174c306..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/variables.env +++ /dev/null @@ -1,24 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.0. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -GOBIN=${GOBIN:=$(go env GOBIN)} - -if [ -z "$GOBIN" ]; then - GOBIN="$(go env GOPATH)/bin" -fi - - -BUILDABLE="${GOBIN}/buildable-v0.0.0-20210109094001-375d0606849d" - -BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20210109093942-2e6391144e85" - -BUILDABLE_OLD="${GOBIN}/buildable_old-v0.0.0-20210109093942-2e6391144e85" - -F2_ARRAY="${GOBIN}/f2-v1.5.0 ${GOBIN}/f2-v1.1.0 ${GOBIN}/f2-v1.2.0 ${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -WR_BUILDABLE="${GOBIN}/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_3_0/.bingo/wr_buildable.mod deleted file mode 100644 index f5ef537..0000000 --- a/testdata/testproject_with_bingo_v0_3_0/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_3_1/.bingo/.gitignore deleted file mode 100755 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/README.md b/testdata/testproject_with_bingo_v0_3_1/.bingo/README.md deleted file mode 100755 index 7a5c2d4..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool. -* For go: Import `.bingo/variables.go` to for variable names. -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_3_1/.bingo/Variables.mk deleted file mode 100644 index 8e17a39..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/Variables.mk +++ /dev/null @@ -1,67 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.1. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for buildable variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(BUILDABLE) -# @echo "Running buildable" -# @$(BUILDABLE) -# -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): $(BINGO_DIR)/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable2" - -BUILDABLE_OLD := $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE_OLD): $(BINGO_DIR)/buildable_old.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable_old.mod -o=$(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable" - -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): $(BINGO_DIR)/f2.mod $(BINGO_DIR)/f2.1.mod $(BINGO_DIR)/f2.2.mod $(BINGO_DIR)/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): $(BINGO_DIR)/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): $(BINGO_DIR)/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" - diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable.mod deleted file mode 100644 index 27db7ff..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable2.mod deleted file mode 100644 index 82c8695..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable_old.mod deleted file mode 100644 index daa7be8..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.1.mod deleted file mode 100644 index ba5f2d3..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.2.mod deleted file mode 100644 index c7dc4e2..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.3.mod deleted file mode 100644 index 32d04e4..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.mod deleted file mode 100644 index 77e59ce..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/faillint.mod deleted file mode 100644 index dd16b6a..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/faillint.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/fatih/faillint v1.3.0 diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/go-bindata.mod deleted file mode 100644 index 5b8e7b9..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/go.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/go.mod deleted file mode 100755 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/variables.env b/testdata/testproject_with_bingo_v0_3_1/.bingo/variables.env deleted file mode 100644 index 0a9f839..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/variables.env +++ /dev/null @@ -1,24 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.1. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -GOBIN=${GOBIN:=$(go env GOBIN)} - -if [ -z "$GOBIN" ]; then - GOBIN="$(go env GOPATH)/bin" -fi - - -BUILDABLE="${GOBIN}/buildable-v0.0.0-20210109094001-375d0606849d" - -BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20210109093942-2e6391144e85" - -BUILDABLE_OLD="${GOBIN}/buildable_old-v0.0.0-20210109093942-2e6391144e85" - -F2_ARRAY="${GOBIN}/f2-v1.5.0 ${GOBIN}/f2-v1.1.0 ${GOBIN}/f2-v1.2.0 ${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -WR_BUILDABLE="${GOBIN}/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - diff --git a/testdata/testproject_with_bingo_v0_3_1/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_3_1/.bingo/wr_buildable.mod deleted file mode 100644 index f5ef537..0000000 --- a/testdata/testproject_with_bingo_v0_3_1/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.15 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_3_2/.bingo/.gitignore deleted file mode 100755 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/README.md b/testdata/testproject_with_bingo_v0_3_2/.bingo/README.md deleted file mode 100755 index 7a5c2d4..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool. -* For go: Import `.bingo/variables.go` to for variable names. -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_3_2/.bingo/Variables.mk deleted file mode 100644 index 2d4eabf..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/Variables.mk +++ /dev/null @@ -1,67 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.2. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Bellow generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for buildable variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(BUILDABLE) -# @echo "Running buildable" -# @$(BUILDABLE) -# -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): $(BINGO_DIR)/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable2" - -BUILDABLE_OLD := $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE_OLD): $(BINGO_DIR)/buildable_old.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable_old.mod -o=$(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable" - -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): $(BINGO_DIR)/f2.mod $(BINGO_DIR)/f2.1.mod $(BINGO_DIR)/f2.2.mod $(BINGO_DIR)/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): $(BINGO_DIR)/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): $(BINGO_DIR)/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" - diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable.mod deleted file mode 100644 index 1b2c9bf..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable2.mod deleted file mode 100644 index f46a81c..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable_old.mod deleted file mode 100644 index 4a9de2b..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.1.mod deleted file mode 100644 index 97b0929..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.2.mod deleted file mode 100644 index e384eac..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.3.mod deleted file mode 100644 index a169d91..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.mod deleted file mode 100644 index d9fcad1..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/faillint.mod deleted file mode 100644 index acb7811..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/faillint.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.3.0 diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/go-bindata.mod deleted file mode 100644 index 4f79d57..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/go.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/go.mod deleted file mode 100755 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/variables.env b/testdata/testproject_with_bingo_v0_3_2/.bingo/variables.env deleted file mode 100644 index c6b8d5b..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/variables.env +++ /dev/null @@ -1,24 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.3.2. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -GOBIN=${GOBIN:=$(go env GOBIN)} - -if [ -z "$GOBIN" ]; then - GOBIN="$(go env GOPATH)/bin" -fi - - -BUILDABLE="${GOBIN}/buildable-v0.0.0-20210109094001-375d0606849d" - -BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20210109093942-2e6391144e85" - -BUILDABLE_OLD="${GOBIN}/buildable_old-v0.0.0-20210109093942-2e6391144e85" - -F2_ARRAY="${GOBIN}/f2-v1.5.0 ${GOBIN}/f2-v1.1.0 ${GOBIN}/f2-v1.2.0 ${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -WR_BUILDABLE="${GOBIN}/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - diff --git a/testdata/testproject_with_bingo_v0_3_2/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_3_2/.bingo/wr_buildable.mod deleted file mode 100644 index 29eda26..0000000 --- a/testdata/testproject_with_bingo_v0_3_2/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_4_1/.bingo/.gitignore deleted file mode 100644 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/README.md b/testdata/testproject_with_bingo_v0_4_1/.bingo/README.md deleted file mode 100644 index 7a5c2d4..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool. -* For go: Import `.bingo/variables.go` to for variable names. -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_4_1/.bingo/Variables.mk deleted file mode 100644 index b354de0..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/Variables.mk +++ /dev/null @@ -1,67 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.1. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Below generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for buildable variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(BUILDABLE) -# @echo "Running buildable" -# @$(BUILDABLE) -# -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): $(BINGO_DIR)/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable2" - -BUILDABLE_OLD := $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE_OLD): $(BINGO_DIR)/buildable_old.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable_old.mod -o=$(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable" - -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): $(BINGO_DIR)/f2.mod $(BINGO_DIR)/f2.1.mod $(BINGO_DIR)/f2.2.mod $(BINGO_DIR)/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): $(BINGO_DIR)/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): $(BINGO_DIR)/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" - diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable.mod deleted file mode 100644 index 1b2c9bf..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable2.mod deleted file mode 100644 index f46a81c..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable_old.mod deleted file mode 100644 index 4a9de2b..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.1.mod deleted file mode 100644 index 97b0929..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.2.mod deleted file mode 100644 index e384eac..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.3.mod deleted file mode 100644 index a169d91..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.mod deleted file mode 100644 index d9fcad1..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/faillint.mod deleted file mode 100644 index 66b8d36..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/faillint.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.3.0 // CGO_ENABLED=1 -tags=extended diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/go-bindata.mod deleted file mode 100644 index 4f79d57..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/go.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/go.mod deleted file mode 100644 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/variables.env b/testdata/testproject_with_bingo_v0_4_1/.bingo/variables.env deleted file mode 100644 index 30e29a6..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/variables.env +++ /dev/null @@ -1,24 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.1. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -GOBIN=${GOBIN:=$(go env GOBIN)} - -if [ -z "$GOBIN" ]; then - GOBIN="$(go env GOPATH)/bin" -fi - - -BUILDABLE="${GOBIN}/buildable-v0.0.0-20210109094001-375d0606849d" - -BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20210109093942-2e6391144e85" - -BUILDABLE_OLD="${GOBIN}/buildable_old-v0.0.0-20210109093942-2e6391144e85" - -F2_ARRAY="${GOBIN}/f2-v1.5.0 ${GOBIN}/f2-v1.1.0 ${GOBIN}/f2-v1.2.0 ${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -WR_BUILDABLE="${GOBIN}/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - diff --git a/testdata/testproject_with_bingo_v0_4_1/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_4_1/.bingo/wr_buildable.mod deleted file mode 100644 index 29eda26..0000000 --- a/testdata/testproject_with_bingo_v0_4_1/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_4_2/.bingo/.gitignore deleted file mode 100644 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/README.md b/testdata/testproject_with_bingo_v0_4_2/.bingo/README.md deleted file mode 100644 index 7a5c2d4..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool. -* For go: Import `.bingo/variables.go` to for variable names. -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_4_2/.bingo/Variables.mk deleted file mode 100644 index a62a795..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/Variables.mk +++ /dev/null @@ -1,67 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.2. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Below generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for buildable variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(BUILDABLE) -# @echo "Running buildable" -# @$(BUILDABLE) -# -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): $(BINGO_DIR)/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable2" - -BUILDABLE_OLD := $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE_OLD): $(BINGO_DIR)/buildable_old.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable_old.mod -o=$(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable" - -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): $(BINGO_DIR)/f2.mod $(BINGO_DIR)/f2.1.mod $(BINGO_DIR)/f2.2.mod $(BINGO_DIR)/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): $(BINGO_DIR)/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): $(BINGO_DIR)/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" - diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable.mod deleted file mode 100644 index 1b2c9bf..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable2.mod deleted file mode 100644 index f46a81c..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable_old.mod deleted file mode 100644 index 4a9de2b..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.1.mod deleted file mode 100644 index 97b0929..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.2.mod deleted file mode 100644 index e384eac..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.3.mod deleted file mode 100644 index a169d91..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.mod deleted file mode 100644 index d9fcad1..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/faillint.mod deleted file mode 100644 index acb7811..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/faillint.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.3.0 diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/go-bindata.mod deleted file mode 100644 index 4f79d57..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/go.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/go.mod deleted file mode 100644 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/variables.env b/testdata/testproject_with_bingo_v0_4_2/.bingo/variables.env deleted file mode 100644 index e051ea0..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/variables.env +++ /dev/null @@ -1,24 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.2. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -GOBIN=${GOBIN:=$(go env GOBIN)} - -if [ -z "$GOBIN" ]; then - GOBIN="$(go env GOPATH)/bin" -fi - - -BUILDABLE="${GOBIN}/buildable-v0.0.0-20210109094001-375d0606849d" - -BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20210109093942-2e6391144e85" - -BUILDABLE_OLD="${GOBIN}/buildable_old-v0.0.0-20210109093942-2e6391144e85" - -F2_ARRAY="${GOBIN}/f2-v1.5.0 ${GOBIN}/f2-v1.1.0 ${GOBIN}/f2-v1.2.0 ${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -WR_BUILDABLE="${GOBIN}/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - diff --git a/testdata/testproject_with_bingo_v0_4_2/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_4_2/.bingo/wr_buildable.mod deleted file mode 100644 index 29eda26..0000000 --- a/testdata/testproject_with_bingo_v0_4_2/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_4_3/.bingo/.gitignore deleted file mode 100644 index 4f2055b..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/.gitignore +++ /dev/null @@ -1,12 +0,0 @@ - -# Ignore everything -* - -# But not these files: -!.gitignore -!*.mod -!README.md -!Variables.mk -!variables.env - -*tmp.mod diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/README.md b/testdata/testproject_with_bingo_v0_4_3/.bingo/README.md deleted file mode 100644 index 7a5c2d4..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool. -* For go: Import `.bingo/variables.go` to for variable names. -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_4_3/.bingo/Variables.mk deleted file mode 100644 index 86e718d..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/Variables.mk +++ /dev/null @@ -1,67 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.3. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Below generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for buildable variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(BUILDABLE) -# @echo "Running buildable" -# @$(BUILDABLE) -# -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): $(BINGO_DIR)/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable2" - -BUILDABLE_OLD := $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE_OLD): $(BINGO_DIR)/buildable_old.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable_old.mod -o=$(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable" - -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): $(BINGO_DIR)/f2.mod $(BINGO_DIR)/f2.1.mod $(BINGO_DIR)/f2.2.mod $(BINGO_DIR)/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): $(BINGO_DIR)/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): $(BINGO_DIR)/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" - diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable.mod deleted file mode 100644 index 1b2c9bf..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable2.mod deleted file mode 100644 index f46a81c..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable_old.mod deleted file mode 100644 index 4a9de2b..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.1.mod deleted file mode 100644 index 97b0929..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.2.mod deleted file mode 100644 index e384eac..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.3.mod deleted file mode 100644 index a169d91..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.mod deleted file mode 100644 index d9fcad1..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/faillint.mod deleted file mode 100644 index acb7811..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/faillint.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/fatih/faillint v1.3.0 diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/go-bindata.mod deleted file mode 100644 index 4f79d57..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/go.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/go.mod deleted file mode 100644 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/variables.env b/testdata/testproject_with_bingo_v0_4_3/.bingo/variables.env deleted file mode 100644 index 92af610..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/variables.env +++ /dev/null @@ -1,24 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.4.3. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -GOBIN=${GOBIN:=$(go env GOBIN)} - -if [ -z "$GOBIN" ]; then - GOBIN="$(go env GOPATH)/bin" -fi - - -BUILDABLE="${GOBIN}/buildable-v0.0.0-20210109094001-375d0606849d" - -BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20210109093942-2e6391144e85" - -BUILDABLE_OLD="${GOBIN}/buildable_old-v0.0.0-20210109093942-2e6391144e85" - -F2_ARRAY="${GOBIN}/f2-v1.5.0 ${GOBIN}/f2-v1.1.0 ${GOBIN}/f2-v1.2.0 ${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -WR_BUILDABLE="${GOBIN}/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - diff --git a/testdata/testproject_with_bingo_v0_4_3/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_4_3/.bingo/wr_buildable.mod deleted file mode 100644 index 29eda26..0000000 --- a/testdata/testproject_with_bingo_v0_4_3/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.16 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/README.md b/testdata/testproject_with_bingo_v0_5_2/.bingo/README.md deleted file mode 100644 index 7a5c2d4..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# Project Development Dependencies. - -This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo. - -* Run `bingo get` to install all tools having each own module file in this directory. -* Run `bingo get ` to install that have own module file in this directory. -* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $() variable where is the .bingo/.mod. -* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool. -* For go: Import `.bingo/variables.go` to for variable names. -* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies. - -## Requirements - -* Go 1.14+ diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_5_2/.bingo/Variables.mk deleted file mode 100644 index 3a7ce7a..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/Variables.mk +++ /dev/null @@ -1,67 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.5.2. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) -GOPATH ?= $(shell go env GOPATH) -GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin -GO ?= $(shell which go) - -# Below generated variables ensure that every time a tool under each variable is invoked, the correct version -# will be used; reinstalling only if needed. -# For example for buildable variable: -# -# In your main Makefile (for non array binaries): -# -#include .bingo/Variables.mk # Assuming -dir was set to .bingo . -# -#command: $(BUILDABLE) -# @echo "Running buildable" -# @$(BUILDABLE) -# -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): $(BINGO_DIR)/buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" - -BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable2" - -BUILDABLE_OLD := $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE_OLD): $(BINGO_DIR)/buildable_old.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=buildable_old.mod -o=$(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable" - -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): $(BINGO_DIR)/f2.mod $(BINGO_DIR)/f2.1.mod $(BINGO_DIR)/f2.2.mod $(BINGO_DIR)/f2.3.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" - -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): $(BINGO_DIR)/faillint.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): $(BINGO_DIR)/wr_buildable.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd $(BINGO_DIR) && $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" - diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable.mod deleted file mode 100644 index f37667f..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable.sum deleted file mode 100644 index a1f383a..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 h1:Wqmz8cruweHfSfzSybZjw/qI7j7NVg0SE/nQ43Mhk5k= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d h1:59ZHXqjB5Gg4KrqX8PbTFFLD7vTSWXZck6W8eU48ma8= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable2.mod deleted file mode 100644 index fcefaf4..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable2.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable2.sum deleted file mode 100644 index d80f0a8..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable2.sum +++ /dev/null @@ -1,6 +0,0 @@ -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 h1:Wqmz8cruweHfSfzSybZjw/qI7j7NVg0SE/nQ43Mhk5k= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable_old.mod deleted file mode 100644 index b4502ed..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable_old.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable_old.sum deleted file mode 100644 index a1f383a..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/buildable_old.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 h1:Wqmz8cruweHfSfzSybZjw/qI7j7NVg0SE/nQ43Mhk5k= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d h1:59ZHXqjB5Gg4KrqX8PbTFFLD7vTSWXZck6W8eU48ma8= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.1.mod deleted file mode 100644 index 09938ed..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.1.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.1.sum deleted file mode 100644 index 8cd5f0d..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.1.sum +++ /dev/null @@ -1,15 +0,0 @@ -github.com/fatih/faillint v1.1.0 h1:+U0TfFQ0/oBzi0nfQkkb83qHnJaanBQiFT+BZq7hmGw= -github.com/fatih/faillint v1.1.0/go.mod h1:7J2HKeobficpwSfjhXPrAi//bSgjs4MvzXE1diGIf5E= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.2.mod deleted file mode 100644 index f31b3e1..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.2.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.2.sum deleted file mode 100644 index 294ec6d..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.2.sum +++ /dev/null @@ -1,14 +0,0 @@ -github.com/fatih/faillint v1.2.0 h1:T+7XFrQefljhzb9yJEcz+a6niW80ggk8sTGc3naisA0= -github.com/fatih/faillint v1.2.0/go.mod h1:NIdbpWIg3uQOR0rDkOY+8xEl3QTK2E6G9h4Adp51NII= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.3.mod deleted file mode 100644 index f00fda1..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.3.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.3.sum deleted file mode 100644 index 155346f..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.3.sum +++ /dev/null @@ -1,15 +0,0 @@ -github.com/fatih/faillint v1.0.0 h1:kzSbdlKC0kRek43rmnm2J+mCtKhl76e+pGHmoCjL+qg= -github.com/fatih/faillint v1.0.0/go.mod h1:7J2HKeobficpwSfjhXPrAi//bSgjs4MvzXE1diGIf5E= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.mod deleted file mode 100644 index 37bb9b9..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.sum deleted file mode 100644 index bf4a46b..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/f2.sum +++ /dev/null @@ -1,16 +0,0 @@ -dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 h1:o4lAkfETerCnr1kF9/qwkwjICnU+YLHNDCM8h2xj7as= -dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363/go.mod h1:WG7q7swWsS2f9PYpt5DoEP/EBYWx8We5UoRltn9vJl8= -github.com/fatih/faillint v1.5.0 h1:fUolG+EsD6zdRW4rapzrM0tSf7VdpxWG3GLCPafUOcE= -github.com/fatih/faillint v1.5.0/go.mod h1:e+3n7K3aI9fnZS4aNCggnoB+uBF4hwjqqR7BmA35PCE= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/faillint.mod deleted file mode 100644 index e618ff0..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/faillint.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/fatih/faillint v1.3.0 diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/faillint.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/faillint.sum deleted file mode 100644 index 67e682c..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/faillint.sum +++ /dev/null @@ -1,20 +0,0 @@ -dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 h1:o4lAkfETerCnr1kF9/qwkwjICnU+YLHNDCM8h2xj7as= -dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363/go.mod h1:WG7q7swWsS2f9PYpt5DoEP/EBYWx8We5UoRltn9vJl8= -github.com/fatih/faillint v1.3.0 h1:59HHzbBWAh523/O4J7HTwgjmp8eA41REhg4/2/o40N0= -github.com/fatih/faillint v1.3.0/go.mod h1:NIdbpWIg3uQOR0rDkOY+8xEl3QTK2E6G9h4Adp51NII= -github.com/fatih/faillint v1.4.0 h1:LVPxyLUQIgvivreLTQrGCmpnXe5K8pWkPmajzwI9IPc= -github.com/fatih/faillint v1.4.0/go.mod h1:e+3n7K3aI9fnZS4aNCggnoB+uBF4hwjqqR7BmA35PCE= -github.com/fatih/faillint v1.5.0 h1:fUolG+EsD6zdRW4rapzrM0tSf7VdpxWG3GLCPafUOcE= -github.com/fatih/faillint v1.5.0/go.mod h1:e+3n7K3aI9fnZS4aNCggnoB+uBF4hwjqqR7BmA35PCE= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/go-bindata.mod deleted file mode 100644 index 0ec1728..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/go-bindata.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/go-bindata.sum deleted file mode 100644 index 28acdb5..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/go-bindata.sum +++ /dev/null @@ -1,2 +0,0 @@ -github.com/go-bindata/go-bindata v3.1.1+incompatible h1:tR4f0e4VTO7LK6B2YWyAoVEzG9ByG1wrXB4TL9+jiYg= -github.com/go-bindata/go-bindata v3.1.1+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/go.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/go.mod deleted file mode 100644 index 610249a..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/go.mod +++ /dev/null @@ -1 +0,0 @@ -module _ // Fake go.mod auto-created by 'bingo' for go -moddir compatibility with non-Go projects. Commit this file, together with other .mod files. \ No newline at end of file diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/variables.env b/testdata/testproject_with_bingo_v0_5_2/.bingo/variables.env deleted file mode 100644 index 9bb7ea8..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/variables.env +++ /dev/null @@ -1,24 +0,0 @@ -# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.5.2. DO NOT EDIT. -# All tools are designed to be build inside $GOBIN. -# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. -GOBIN=${GOBIN:=$(go env GOBIN)} - -if [ -z "$GOBIN" ]; then - GOBIN="$(go env GOPATH)/bin" -fi - - -BUILDABLE="${GOBIN}/buildable-v0.0.0-20210109094001-375d0606849d" - -BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20210109093942-2e6391144e85" - -BUILDABLE_OLD="${GOBIN}/buildable_old-v0.0.0-20210109093942-2e6391144e85" - -F2_ARRAY="${GOBIN}/f2-v1.5.0 ${GOBIN}/f2-v1.1.0 ${GOBIN}/f2-v1.2.0 ${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -WR_BUILDABLE="${GOBIN}/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_5_2/.bingo/wr_buildable.mod deleted file mode 100644 index dddc71f..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.17 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/wr_buildable.sum b/testdata/testproject_with_bingo_v0_5_2/.bingo/wr_buildable.sum deleted file mode 100644 index b726492..0000000 --- a/testdata/testproject_with_bingo_v0_5_2/.bingo/wr_buildable.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a h1:SlGaoRbNkY9IE/wcpTJhbIoNpsTqteHgKovEaNVcVZ4= -github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a/go.mod h1:B7cYHgOahfKhx0P1zIumzlSEplYfFgiGYQDLR1CjSbY= -github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210110214650-ab990d1be30b h1:Cr1Z+r2vLT5UZEIhVlO5zl340y8qKU6WdZhLzAGaPeM= -github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210110214650-ab990d1be30b/go.mod h1:CIxq1y0J917NwTpTGbb7Kpt90l7PnJEd/FSELoFq+O0= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_6/.bingo/Variables.mk index 181d578..e84cdfe 100644 --- a/testdata/testproject_with_bingo_v0_6/.bingo/Variables.mk +++ b/testdata/testproject_with_bingo_v0_6/.bingo/Variables.mk @@ -7,61 +7,41 @@ GO ?= $(shell which go) # Below generated variables ensure that every time a tool under each variable is invoked, the correct version # will be used; reinstalling only if needed. -# For example for buildable variable: +# For example for buildable-v2 variable: # # In your main Makefile (for non array binaries): # #include .bingo/Variables.mk # Assuming -dir was set to .bingo . # -#command: $(BUILDABLE) -# @echo "Running buildable" -# @$(BUILDABLE) +#command: $(BUILDABLE_V2) +# @echo "Running buildable-v2" +# @$(BUILDABLE_V2) # -BUILDABLE := $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d -$(BUILDABLE): $(BINGO_DIR)/buildable.mod +BUILDABLE_V2 := $(GOBIN)/buildable-v2-v2.0.0 +$(BUILDABLE_V2): $(BINGO_DIR)/buildable-v2.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20210109094001-375d0606849d "github.com/bwplotka/bingo/testdata/module/buildable" + @echo "(re)installing $(GOBIN)/buildable-v2-v2.0.0" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable-v2.mod -o=$(GOBIN)/buildable-v2-v2.0.0 "github.com/bwplotka/bingo-testmodule/v2/buildable" -BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable2" - -BUILDABLE_OLD := $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 -$(BUILDABLE_OLD): $(BINGO_DIR)/buildable_old.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable_old.mod -o=$(GOBIN)/buildable_old-v0.0.0-20210109093942-2e6391144e85 "github.com/bwplotka/bingo/testdata/module/buildable" - -F2_ARRAY := $(GOBIN)/f2-v1.5.0 $(GOBIN)/f2-v1.1.0 $(GOBIN)/f2-v1.2.0 $(GOBIN)/f2-v1.0.0 -$(F2_ARRAY): $(BINGO_DIR)/f2.mod $(BINGO_DIR)/f2.1.mod $(BINGO_DIR)/f2.2.mod $(BINGO_DIR)/f2.3.mod +BUILDABLE_WITHREPLACE := $(GOBIN)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92 +$(BUILDABLE_WITHREPLACE): $(BINGO_DIR)/buildable-withReplace.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/f2-v1.5.0" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=f2.mod -o=$(GOBIN)/f2-v1.5.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.1.0" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=f2.1.mod -o=$(GOBIN)/f2-v1.1.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.2.0" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=f2.2.mod -o=$(GOBIN)/f2-v1.2.0 "github.com/fatih/faillint" - @echo "(re)installing $(GOBIN)/f2-v1.0.0" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=f2.3.mod -o=$(GOBIN)/f2-v1.0.0 "github.com/fatih/faillint" + @echo "(re)installing $(GOBIN)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable-withReplace.mod -o=$(GOBIN)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92 "github.com/bwplotka/bingo-testmodule/buildable" -FAILLINT := $(GOBIN)/faillint-v1.3.0 -$(FAILLINT): $(BINGO_DIR)/faillint.mod +BUILDABLE_ARRAY := $(GOBIN)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e $(GOBIN)/buildable-v1.0.0 $(GOBIN)/buildable-v1.1.0 +$(BUILDABLE_ARRAY): $(BINGO_DIR)/buildable.mod $(BINGO_DIR)/buildable.1.mod $(BINGO_DIR)/buildable.2.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/faillint-v1.3.0" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=faillint.mod -o=$(GOBIN)/faillint-v1.3.0 "github.com/fatih/faillint" - -GO_BINDATA := $(GOBIN)/go-bindata-v3.1.1+incompatible -$(GO_BINDATA): $(BINGO_DIR)/go-bindata.mod - @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/go-bindata-v3.1.1+incompatible" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=go-bindata.mod -o=$(GOBIN)/go-bindata-v3.1.1+incompatible "github.com/go-bindata/go-bindata/go-bindata" - -WR_BUILDABLE := $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a -$(WR_BUILDABLE): $(BINGO_DIR)/wr_buildable.mod + @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e "github.com/bwplotka/bingo-testmodule/buildable" + @echo "(re)installing $(GOBIN)/buildable-v1.0.0" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.1.mod -o=$(GOBIN)/buildable-v1.0.0 "github.com/bwplotka/bingo-testmodule/buildable" + @echo "(re)installing $(GOBIN)/buildable-v1.1.0" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.2.mod -o=$(GOBIN)/buildable-v1.1.0 "github.com/bwplotka/bingo-testmodule/buildable" + +BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5 +$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. - @echo "(re)installing $(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" - @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=wr_buildable.mod -o=$(GOBIN)/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a "github.com/bwplotka/bingo/testdata/module_with_replace/buildable" + @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5 "github.com/bwplotka/bingo-testmodule/buildable2" diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable-v2.mod b/testdata/testproject_with_bingo_v0_6/.bingo/buildable-v2.mod new file mode 100644 index 0000000..acdfaa6 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable-v2.mod @@ -0,0 +1,5 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.19 + +require github.com/bwplotka/bingo-testmodule/v2 v2.0.0 // buildable diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable-v2.sum b/testdata/testproject_with_bingo_v0_6/.bingo/buildable-v2.sum new file mode 100644 index 0000000..65fc55f --- /dev/null +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable-v2.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule/v2 v2.0.0 h1:Q398jJ6nKh8G0C3Pbqn8x+3h89aJl6kW6QGIv0Y0xpY= +github.com/bwplotka/bingo-testmodule/v2 v2.0.0/go.mod h1:M/nPnLLSsuHrLMFOiaINFMOitFBIPEvGXs8C+6LpHDM= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable-withReplace.mod b/testdata/testproject_with_bingo_v0_6/.bingo/buildable-withReplace.mod new file mode 100644 index 0000000..4343d04 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable-withReplace.mod @@ -0,0 +1,9 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.19 + +replace github.com/efficientgo/core => github.com/efficientgo/core v1.0.0-rc.0.0.20220828074345-1974bfa191ce + +replace github.com/oklog/run-v100 => github.com/oklog/run v1.0.0 + +require github.com/bwplotka/bingo-testmodule v0.0.0-20221007091003-fe4d42a37d92 // buildable diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable-withReplace.sum b/testdata/testproject_with_bingo_v0_6/.bingo/buildable-withReplace.sum new file mode 100644 index 0000000..e018b10 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable-withReplace.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091003-fe4d42a37d92 h1:sfBAuIKrtFQnq3zQESivtCrRgcexoiPH2fTQSZQn5+o= +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091003-fe4d42a37d92/go.mod h1:vtWaeKhKaAJtEWbufYcFpHicH91st0taVI/i6SJZi0o= +github.com/efficientgo/core v1.0.0-rc.0.0.20220828074345-1974bfa191ce h1:L9uxGBYRmr+TPmpB5B0vUApuvyfeuYs/46qIJrbASaU= +github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.1.mod similarity index 51% rename from testdata/testproject_with_bingo_v0_1_1/.bingo/f2.1.mod rename to testdata/testproject_with_bingo_v0_6/.bingo/buildable.1.mod index a86b191..1fe6ced 100644 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/f2.1.mod +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.1.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.14 +go 1.19 -require github.com/fatih/faillint v1.1.0 +require github.com/bwplotka/bingo-testmodule v1.0.0 // buildable diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable.1.sum b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.1.sum new file mode 100644 index 0000000..1055a81 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.1.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule v1.0.0 h1:x0awJHWvozd+3oJgv9GMlhXWEEQakG/QFU/HYQl1Uq0= +github.com/bwplotka/bingo-testmodule v1.0.0/go.mod h1:Mzqh1sG01xz1ikTyHwyc8sPG6NZTzkDmBpQkh/RcJy4= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.2.mod similarity index 51% rename from testdata/testproject_with_bingo_v0_1_1/.bingo/f2.2.mod rename to testdata/testproject_with_bingo_v0_6/.bingo/buildable.2.mod index c43054c..e3553b6 100644 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/f2.2.mod +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.2.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.14 +go 1.19 -require github.com/fatih/faillint v1.2.0 +require github.com/bwplotka/bingo-testmodule v1.1.0 // buildable diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable.2.sum b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.2.sum new file mode 100644 index 0000000..ed5ca88 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.2.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule v1.1.0 h1:0Zn+iM1MKyxxxotMBLmoM+EuBMu92VIHUvqDvt2vAew= +github.com/bwplotka/bingo-testmodule v1.1.0/go.mod h1:Mzqh1sG01xz1ikTyHwyc8sPG6NZTzkDmBpQkh/RcJy4= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.mod index b4b7769..09a630a 100644 --- a/testdata/testproject_with_bingo_v0_6/.bingo/buildable.mod +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.18 +go 1.19 -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d // buildable +require github.com/bwplotka/bingo-testmodule v0.0.0-20221007091146-39a7f0ae0b1e // buildable diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable.sum b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.sum index a1f383a..405c4e5 100644 --- a/testdata/testproject_with_bingo_v0_6/.bingo/buildable.sum +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable.sum @@ -1,8 +1,7 @@ -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 h1:Wqmz8cruweHfSfzSybZjw/qI7j7NVg0SE/nQ43Mhk5k= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d h1:59ZHXqjB5Gg4KrqX8PbTFFLD7vTSWXZck6W8eU48ma8= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091146-39a7f0ae0b1e h1:otoYOGKfDf7LK+2Rvr9WkRqog02dWl73AKrQeqiJLAM= +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091146-39a7f0ae0b1e/go.mod h1:zIO4Ofu7pH/+CpIjnrLwjCavsML3RJD0/ycK5hLZxGc= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/efficientgo/core v1.0.0-rc.0/go.mod h1:kQa0V74HNYMfuJH6jiPiwNdpWXl4xd/K4tzlrcvYDQI= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_6/.bingo/buildable2.mod index 98696ee..5e5844b 100644 --- a/testdata/testproject_with_bingo_v0_6/.bingo/buildable2.mod +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable2.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.18 +go 1.19 -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable2 +require github.com/bwplotka/bingo-testmodule v0.0.0-20221007091238-9d83f47b84c5 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable2.sum b/testdata/testproject_with_bingo_v0_6/.bingo/buildable2.sum index d80f0a8..aecb8d8 100644 --- a/testdata/testproject_with_bingo_v0_6/.bingo/buildable2.sum +++ b/testdata/testproject_with_bingo_v0_6/.bingo/buildable2.sum @@ -1,6 +1,4 @@ -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 h1:Wqmz8cruweHfSfzSybZjw/qI7j7NVg0SE/nQ43Mhk5k= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091238-9d83f47b84c5 h1:zertI+l2UVNXae3Pn8nYNRpwAR+M40SQbtIqJmNhH2Q= +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091238-9d83f47b84c5/go.mod h1:JchNF1WhrxR2C7CdF2e9m2rzmK1W+9qDbvcu8+2/stg= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable_old.mod b/testdata/testproject_with_bingo_v0_6/.bingo/buildable_old.mod deleted file mode 100644 index 559696d..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/buildable_old.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.18 - -require github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 // buildable diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/buildable_old.sum b/testdata/testproject_with_bingo_v0_6/.bingo/buildable_old.sum deleted file mode 100644 index a1f383a..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/buildable_old.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85 h1:Wqmz8cruweHfSfzSybZjw/qI7j7NVg0SE/nQ43Mhk5k= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109093942-2e6391144e85/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d h1:59ZHXqjB5Gg4KrqX8PbTFFLD7vTSWXZck6W8eU48ma8= -github.com/bwplotka/bingo/testdata/module v0.0.0-20210109094001-375d0606849d/go.mod h1:vSt9tEyJMkPhrXnnDIUsqsSdBQh5LTBmEY2p/F0xER8= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/f2.1.mod b/testdata/testproject_with_bingo_v0_6/.bingo/f2.1.mod deleted file mode 100644 index 1fa1361..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/f2.1.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.18 - -require github.com/fatih/faillint v1.1.0 diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/f2.1.sum b/testdata/testproject_with_bingo_v0_6/.bingo/f2.1.sum deleted file mode 100644 index 8cd5f0d..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/f2.1.sum +++ /dev/null @@ -1,15 +0,0 @@ -github.com/fatih/faillint v1.1.0 h1:+U0TfFQ0/oBzi0nfQkkb83qHnJaanBQiFT+BZq7hmGw= -github.com/fatih/faillint v1.1.0/go.mod h1:7J2HKeobficpwSfjhXPrAi//bSgjs4MvzXE1diGIf5E= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/f2.2.mod b/testdata/testproject_with_bingo_v0_6/.bingo/f2.2.mod deleted file mode 100644 index 0e34765..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/f2.2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.18 - -require github.com/fatih/faillint v1.2.0 diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/f2.2.sum b/testdata/testproject_with_bingo_v0_6/.bingo/f2.2.sum deleted file mode 100644 index 294ec6d..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/f2.2.sum +++ /dev/null @@ -1,14 +0,0 @@ -github.com/fatih/faillint v1.2.0 h1:T+7XFrQefljhzb9yJEcz+a6niW80ggk8sTGc3naisA0= -github.com/fatih/faillint v1.2.0/go.mod h1:NIdbpWIg3uQOR0rDkOY+8xEl3QTK2E6G9h4Adp51NII= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_6/.bingo/f2.3.mod deleted file mode 100644 index 050ac85..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/f2.3.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.18 - -require github.com/fatih/faillint v1.0.0 diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/f2.3.sum b/testdata/testproject_with_bingo_v0_6/.bingo/f2.3.sum deleted file mode 100644 index 155346f..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/f2.3.sum +++ /dev/null @@ -1,15 +0,0 @@ -github.com/fatih/faillint v1.0.0 h1:kzSbdlKC0kRek43rmnm2J+mCtKhl76e+pGHmoCjL+qg= -github.com/fatih/faillint v1.0.0/go.mod h1:7J2HKeobficpwSfjhXPrAi//bSgjs4MvzXE1diGIf5E= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_6/.bingo/f2.mod deleted file mode 100644 index 92fee28..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/f2.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.18 - -require github.com/fatih/faillint v1.5.0 diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/f2.sum b/testdata/testproject_with_bingo_v0_6/.bingo/f2.sum deleted file mode 100644 index bf4a46b..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/f2.sum +++ /dev/null @@ -1,16 +0,0 @@ -dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 h1:o4lAkfETerCnr1kF9/qwkwjICnU+YLHNDCM8h2xj7as= -dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363/go.mod h1:WG7q7swWsS2f9PYpt5DoEP/EBYWx8We5UoRltn9vJl8= -github.com/fatih/faillint v1.5.0 h1:fUolG+EsD6zdRW4rapzrM0tSf7VdpxWG3GLCPafUOcE= -github.com/fatih/faillint v1.5.0/go.mod h1:e+3n7K3aI9fnZS4aNCggnoB+uBF4hwjqqR7BmA35PCE= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/faillint.mod b/testdata/testproject_with_bingo_v0_6/.bingo/faillint.mod deleted file mode 100644 index 33aa29b..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/faillint.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.18 - -require github.com/fatih/faillint v1.3.0 diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/faillint.sum b/testdata/testproject_with_bingo_v0_6/.bingo/faillint.sum deleted file mode 100644 index 67e682c..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/faillint.sum +++ /dev/null @@ -1,20 +0,0 @@ -dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363 h1:o4lAkfETerCnr1kF9/qwkwjICnU+YLHNDCM8h2xj7as= -dmitri.shuralyov.com/go/generated v0.0.0-20170818220700-b1254a446363/go.mod h1:WG7q7swWsS2f9PYpt5DoEP/EBYWx8We5UoRltn9vJl8= -github.com/fatih/faillint v1.3.0 h1:59HHzbBWAh523/O4J7HTwgjmp8eA41REhg4/2/o40N0= -github.com/fatih/faillint v1.3.0/go.mod h1:NIdbpWIg3uQOR0rDkOY+8xEl3QTK2E6G9h4Adp51NII= -github.com/fatih/faillint v1.4.0 h1:LVPxyLUQIgvivreLTQrGCmpnXe5K8pWkPmajzwI9IPc= -github.com/fatih/faillint v1.4.0/go.mod h1:e+3n7K3aI9fnZS4aNCggnoB+uBF4hwjqqR7BmA35PCE= -github.com/fatih/faillint v1.5.0 h1:fUolG+EsD6zdRW4rapzrM0tSf7VdpxWG3GLCPafUOcE= -github.com/fatih/faillint v1.5.0/go.mod h1:e+3n7K3aI9fnZS4aNCggnoB+uBF4hwjqqR7BmA35PCE= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025 h1:i84/3szN87uN9jFX/jRqUbszQto2oAsFlqPf6lbR8H4= -golang.org/x/tools v0.0.0-20200207224406-61798d64f025/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/go-bindata.mod b/testdata/testproject_with_bingo_v0_6/.bingo/go-bindata.mod deleted file mode 100644 index 19c036d..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/go-bindata.mod +++ /dev/null @@ -1,5 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.18 - -require github.com/go-bindata/go-bindata v3.1.1+incompatible // go-bindata diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/go-bindata.sum b/testdata/testproject_with_bingo_v0_6/.bingo/go-bindata.sum deleted file mode 100644 index 28acdb5..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/go-bindata.sum +++ /dev/null @@ -1,2 +0,0 @@ -github.com/go-bindata/go-bindata v3.1.1+incompatible h1:tR4f0e4VTO7LK6B2YWyAoVEzG9ByG1wrXB4TL9+jiYg= -github.com/go-bindata/go-bindata v3.1.1+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo= diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/variables.env b/testdata/testproject_with_bingo_v0_6/.bingo/variables.env index 5d5097f..ac9a495 100644 --- a/testdata/testproject_with_bingo_v0_6/.bingo/variables.env +++ b/testdata/testproject_with_bingo_v0_6/.bingo/variables.env @@ -8,17 +8,11 @@ if [ -z "$GOBIN" ]; then fi -BUILDABLE="${GOBIN}/buildable-v0.0.0-20210109094001-375d0606849d" +BUILDABLE_V2="${GOBIN}/buildable-v2-v2.0.0" -BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20210109093942-2e6391144e85" +BUILDABLE_WITHREPLACE="${GOBIN}/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92" -BUILDABLE_OLD="${GOBIN}/buildable_old-v0.0.0-20210109093942-2e6391144e85" +BUILDABLE_ARRAY="${GOBIN}/buildable-v0.0.0-20221007091146-39a7f0ae0b1e ${GOBIN}/buildable-v1.0.0 ${GOBIN}/buildable-v1.1.0" -F2_ARRAY="${GOBIN}/f2-v1.5.0 ${GOBIN}/f2-v1.1.0 ${GOBIN}/f2-v1.2.0 ${GOBIN}/f2-v1.0.0" - -FAILLINT="${GOBIN}/faillint-v1.3.0" - -GO_BINDATA="${GOBIN}/go-bindata-v3.1.1+incompatible" - -WR_BUILDABLE="${GOBIN}/wr_buildable-v0.0.0-20210109165512-ccbd4039b94a" +BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20221007091238-9d83f47b84c5" diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/wr_buildable.mod b/testdata/testproject_with_bingo_v0_6/.bingo/wr_buildable.mod deleted file mode 100644 index 90f597d..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/wr_buildable.mod +++ /dev/null @@ -1,7 +0,0 @@ -module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT - -go 1.18 - -replace github.com/bwplotka/bingo => github.com/pkg/errors v0.9.1 - -require github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a // buildable diff --git a/testdata/testproject_with_bingo_v0_6/.bingo/wr_buildable.sum b/testdata/testproject_with_bingo_v0_6/.bingo/wr_buildable.sum deleted file mode 100644 index b726492..0000000 --- a/testdata/testproject_with_bingo_v0_6/.bingo/wr_buildable.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a h1:SlGaoRbNkY9IE/wcpTJhbIoNpsTqteHgKovEaNVcVZ4= -github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210109165512-ccbd4039b94a/go.mod h1:B7cYHgOahfKhx0P1zIumzlSEplYfFgiGYQDLR1CjSbY= -github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210110214650-ab990d1be30b h1:Cr1Z+r2vLT5UZEIhVlO5zl340y8qKU6WdZhLzAGaPeM= -github.com/bwplotka/bingo/testdata/module_with_replace v0.0.0-20210110214650-ab990d1be30b/go.mod h1:CIxq1y0J917NwTpTGbb7Kpt90l7PnJEd/FSELoFq+O0= -github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= -github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/testdata/testproject_with_bingo_v0_5_2/.bingo/.gitignore b/testdata/testproject_with_bingo_v0_7/.bingo/.gitignore similarity index 100% rename from testdata/testproject_with_bingo_v0_5_2/.bingo/.gitignore rename to testdata/testproject_with_bingo_v0_7/.bingo/.gitignore diff --git a/testdata/testproject_with_bingo_v0_3_0/.bingo/README.md b/testdata/testproject_with_bingo_v0_7/.bingo/README.md old mode 100755 new mode 100644 similarity index 100% rename from testdata/testproject_with_bingo_v0_3_0/.bingo/README.md rename to testdata/testproject_with_bingo_v0_7/.bingo/README.md diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/Variables.mk b/testdata/testproject_with_bingo_v0_7/.bingo/Variables.mk new file mode 100644 index 0000000..d4b2fe6 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/Variables.mk @@ -0,0 +1,47 @@ +# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.7. DO NOT EDIT. +# All tools are designed to be build inside $GOBIN. +BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST))) +GOPATH ?= $(shell go env GOPATH) +GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin +GO ?= $(shell which go) + +# Below generated variables ensure that every time a tool under each variable is invoked, the correct version +# will be used; reinstalling only if needed. +# For example for buildable-v2 variable: +# +# In your main Makefile (for non array binaries): +# +#include .bingo/Variables.mk # Assuming -dir was set to .bingo . +# +#command: $(BUILDABLE_V2) +# @echo "Running buildable-v2" +# @$(BUILDABLE_V2) +# +BUILDABLE_V2 := $(GOBIN)/buildable-v2-v2.0.0 +$(BUILDABLE_V2): $(BINGO_DIR)/buildable-v2.mod + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/buildable-v2-v2.0.0" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable-v2.mod -o=$(GOBIN)/buildable-v2-v2.0.0 "github.com/bwplotka/bingo-testmodule/v2/buildable" + +BUILDABLE_WITHREPLACE := $(GOBIN)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92 +$(BUILDABLE_WITHREPLACE): $(BINGO_DIR)/buildable-withReplace.mod + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable-withReplace.mod -o=$(GOBIN)/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92 "github.com/bwplotka/bingo-testmodule/buildable" + +BUILDABLE_ARRAY := $(GOBIN)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e $(GOBIN)/buildable-v1.0.0 $(GOBIN)/buildable-v1.1.0 +$(BUILDABLE_ARRAY): $(BINGO_DIR)/buildable.mod $(BINGO_DIR)/buildable.1.mod $(BINGO_DIR)/buildable.2.mod + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.mod -o=$(GOBIN)/buildable-v0.0.0-20221007091146-39a7f0ae0b1e "github.com/bwplotka/bingo-testmodule/buildable" + @echo "(re)installing $(GOBIN)/buildable-v1.0.0" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.1.mod -o=$(GOBIN)/buildable-v1.0.0 "github.com/bwplotka/bingo-testmodule/buildable" + @echo "(re)installing $(GOBIN)/buildable-v1.1.0" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable.2.mod -o=$(GOBIN)/buildable-v1.1.0 "github.com/bwplotka/bingo-testmodule/buildable" + +BUILDABLE2 := $(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5 +$(BUILDABLE2): $(BINGO_DIR)/buildable2.mod + @# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies. + @echo "(re)installing $(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5" + @cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=buildable2.mod -o=$(GOBIN)/buildable2-v0.0.0-20221007091238-9d83f47b84c5 "github.com/bwplotka/bingo-testmodule/buildable2" + diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable-v2.mod b/testdata/testproject_with_bingo_v0_7/.bingo/buildable-v2.mod new file mode 100644 index 0000000..acdfaa6 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable-v2.mod @@ -0,0 +1,5 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.19 + +require github.com/bwplotka/bingo-testmodule/v2 v2.0.0 // buildable diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable-v2.sum b/testdata/testproject_with_bingo_v0_7/.bingo/buildable-v2.sum new file mode 100644 index 0000000..65fc55f --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable-v2.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule/v2 v2.0.0 h1:Q398jJ6nKh8G0C3Pbqn8x+3h89aJl6kW6QGIv0Y0xpY= +github.com/bwplotka/bingo-testmodule/v2 v2.0.0/go.mod h1:M/nPnLLSsuHrLMFOiaINFMOitFBIPEvGXs8C+6LpHDM= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable-withReplace.mod b/testdata/testproject_with_bingo_v0_7/.bingo/buildable-withReplace.mod new file mode 100644 index 0000000..4343d04 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable-withReplace.mod @@ -0,0 +1,9 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.19 + +replace github.com/efficientgo/core => github.com/efficientgo/core v1.0.0-rc.0.0.20220828074345-1974bfa191ce + +replace github.com/oklog/run-v100 => github.com/oklog/run v1.0.0 + +require github.com/bwplotka/bingo-testmodule v0.0.0-20221007091003-fe4d42a37d92 // buildable diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable-withReplace.sum b/testdata/testproject_with_bingo_v0_7/.bingo/buildable-withReplace.sum new file mode 100644 index 0000000..e018b10 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable-withReplace.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091003-fe4d42a37d92 h1:sfBAuIKrtFQnq3zQESivtCrRgcexoiPH2fTQSZQn5+o= +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091003-fe4d42a37d92/go.mod h1:vtWaeKhKaAJtEWbufYcFpHicH91st0taVI/i6SJZi0o= +github.com/efficientgo/core v1.0.0-rc.0.0.20220828074345-1974bfa191ce h1:L9uxGBYRmr+TPmpB5B0vUApuvyfeuYs/46qIJrbASaU= +github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/f2.3.mod b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.1.mod similarity index 51% rename from testdata/testproject_with_bingo_v0_1_1/.bingo/f2.3.mod rename to testdata/testproject_with_bingo_v0_7/.bingo/buildable.1.mod index 5a191fc..1fe6ced 100644 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/f2.3.mod +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.1.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.14 +go 1.19 -require github.com/fatih/faillint v1.0.0 +require github.com/bwplotka/bingo-testmodule v1.0.0 // buildable diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable.1.sum b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.1.sum new file mode 100644 index 0000000..1055a81 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.1.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule v1.0.0 h1:x0awJHWvozd+3oJgv9GMlhXWEEQakG/QFU/HYQl1Uq0= +github.com/bwplotka/bingo-testmodule v1.0.0/go.mod h1:Mzqh1sG01xz1ikTyHwyc8sPG6NZTzkDmBpQkh/RcJy4= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/f2.mod b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.2.mod similarity index 51% rename from testdata/testproject_with_bingo_v0_1_1/.bingo/f2.mod rename to testdata/testproject_with_bingo_v0_7/.bingo/buildable.2.mod index 304af0e..e3553b6 100644 --- a/testdata/testproject_with_bingo_v0_1_1/.bingo/f2.mod +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.2.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.14 +go 1.19 -require github.com/fatih/faillint v1.5.0 +require github.com/bwplotka/bingo-testmodule v1.1.0 // buildable diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable.2.sum b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.2.sum new file mode 100644 index 0000000..ed5ca88 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.2.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule v1.1.0 h1:0Zn+iM1MKyxxxotMBLmoM+EuBMu92VIHUvqDvt2vAew= +github.com/bwplotka/bingo-testmodule v1.1.0/go.mod h1:Mzqh1sG01xz1ikTyHwyc8sPG6NZTzkDmBpQkh/RcJy4= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable.mod b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.mod new file mode 100644 index 0000000..09a630a --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.mod @@ -0,0 +1,5 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.19 + +require github.com/bwplotka/bingo-testmodule v0.0.0-20221007091146-39a7f0ae0b1e // buildable diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable.sum b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.sum new file mode 100644 index 0000000..405c4e5 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable.sum @@ -0,0 +1,7 @@ +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091146-39a7f0ae0b1e h1:otoYOGKfDf7LK+2Rvr9WkRqog02dWl73AKrQeqiJLAM= +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091146-39a7f0ae0b1e/go.mod h1:zIO4Ofu7pH/+CpIjnrLwjCavsML3RJD0/ycK5hLZxGc= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/efficientgo/core v1.0.0-rc.0/go.mod h1:kQa0V74HNYMfuJH6jiPiwNdpWXl4xd/K4tzlrcvYDQI= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= +github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable2.mod b/testdata/testproject_with_bingo_v0_7/.bingo/buildable2.mod new file mode 100644 index 0000000..5e5844b --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable2.mod @@ -0,0 +1,5 @@ +module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT + +go 1.19 + +require github.com/bwplotka/bingo-testmodule v0.0.0-20221007091238-9d83f47b84c5 // buildable2 diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/buildable2.sum b/testdata/testproject_with_bingo_v0_7/.bingo/buildable2.sum new file mode 100644 index 0000000..aecb8d8 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/buildable2.sum @@ -0,0 +1,4 @@ +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091238-9d83f47b84c5 h1:zertI+l2UVNXae3Pn8nYNRpwAR+M40SQbtIqJmNhH2Q= +github.com/bwplotka/bingo-testmodule v0.0.0-20221007091238-9d83f47b84c5/go.mod h1:JchNF1WhrxR2C7CdF2e9m2rzmK1W+9qDbvcu8+2/stg= +github.com/efficientgo/core v1.0.0-rc.0 h1:jJoA0N+C4/knWYVZ6GrdHOtDyrg8Y/TR4vFpTaqTsqs= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= diff --git a/testdata/testproject_with_bingo_v0_1_1/.bingo/go.mod b/testdata/testproject_with_bingo_v0_7/.bingo/go.mod old mode 100755 new mode 100644 similarity index 100% rename from testdata/testproject_with_bingo_v0_1_1/.bingo/go.mod rename to testdata/testproject_with_bingo_v0_7/.bingo/go.mod diff --git a/testdata/testproject_with_bingo_v0_7/.bingo/variables.env b/testdata/testproject_with_bingo_v0_7/.bingo/variables.env new file mode 100644 index 0000000..8fbd2e1 --- /dev/null +++ b/testdata/testproject_with_bingo_v0_7/.bingo/variables.env @@ -0,0 +1,18 @@ +# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.7. DO NOT EDIT. +# All tools are designed to be build inside $GOBIN. +# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk. +GOBIN=${GOBIN:=$(go env GOBIN)} + +if [ -z "$GOBIN" ]; then + GOBIN="$(go env GOPATH)/bin" +fi + + +BUILDABLE_V2="${GOBIN}/buildable-v2-v2.0.0" + +BUILDABLE_WITHREPLACE="${GOBIN}/buildable-withReplace-v0.0.0-20221007091003-fe4d42a37d92" + +BUILDABLE_ARRAY="${GOBIN}/buildable-v0.0.0-20221007091146-39a7f0ae0b1e ${GOBIN}/buildable-v1.0.0 ${GOBIN}/buildable-v1.1.0" + +BUILDABLE2="${GOBIN}/buildable2-v0.0.0-20221007091238-9d83f47b84c5" +