aws/aws-app-mesh-examples

[BUG] Docker build: "go.mod file not found"

alexbrjo opened this issue · 2 comments

Describe the bug

Color teller in the howto-mutual-tls-file-provided walkthrough is not building.

 > [builder 3/3] RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /app .:
#8 0.449 go: go.mod file not found in current directory or any parent directory; see 'go help modules'

Platform
EKS, ECS, EC2, etc.

To Reproduce
Steps to reproduce the behavior:

Perform the howto-mutual-tls-file-provided walkthrough up to the ./src/colorteller/deploy.sh step

Expected behavior
Image should build

Config files, and API responses
If applicable config files and responses from our API.

Additional context
Looks like Go had a release in the last month and the image tag we're using may now be pointing to a newer image. Go 1.16 release notes

Work around: use the golang-1.15-buster image instead of golang:1-buster here.

With #456 update this is not applicable anymore. So closing this issue.