From f9177327c21d945448c6fa4e30fe19f9967a95a0 Mon Sep 17 00:00:00 2001 From: kuannie1 Date: Wed, 31 Jul 2024 10:30:21 -0700 Subject: [PATCH] fix: make the mock script work again --- README.md | 2 ++ aws/Makefile | 4 ++-- aws/go.mod | 2 +- aws/go.sum | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f17f022c..d8cbc0e8 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ This is a collection of Go libraries and projects used by other projects within ### aws An AWS client that aims to standardize the way we mock and write aws tests +If you recently changed laptops and struggled with new go dependencies, use [this page to help](https://stackoverflow.com/questions/42614380/go-install-not-working-with-zsh). Full link: https://stackoverflow.com/questions/42614380/go-install-not-working-with-zsh + ### config A utility for loading configuration from environment variables and files. See the [config](config/README.md) package for more information. diff --git a/aws/Makefile b/aws/Makefile index efa60f70..eb017474 100644 --- a/aws/Makefile +++ b/aws/Makefile @@ -5,7 +5,7 @@ generate-mocks: ## will generate mocks go install github.com/golang/mock/mockgen@v1.6.0 go get -u github.com/aws/aws-sdk-go/... go get -u github.com/aws/aws-sdk-go-v2/... - rm -rf aws/mocks/* - cd aws; go generate + rm -rf mocks/* + go generate go mod tidy .PHONY: generate-mocks diff --git a/aws/go.mod b/aws/go.mod index 6d5e112d..6dc3b163 100644 --- a/aws/go.mod +++ b/aws/go.mod @@ -5,7 +5,7 @@ go 1.21 toolchain go1.21.1 require ( - github.com/aws/aws-sdk-go v1.55.3 + github.com/aws/aws-sdk-go v1.55.5 github.com/golang/mock v1.6.0 github.com/pkg/errors v0.9.1 ) diff --git a/aws/go.sum b/aws/go.sum index 1d0df4ed..81197361 100644 --- a/aws/go.sum +++ b/aws/go.sum @@ -1,5 +1,5 @@ -github.com/aws/aws-sdk-go v1.55.3 h1:0B5hOX+mIx7I5XPOrjrHlKSDQV/+ypFZpIHOx5LOk3E= -github.com/aws/aws-sdk-go v1.55.3/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= +github.com/aws/aws-sdk-go v1.55.5 h1:KKUZBfBoyqy5d3swXyiC7Q76ic40rYcbqH7qjh59kzU= +github.com/aws/aws-sdk-go v1.55.5/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU= 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=