Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #898

Merged
merged 8 commits into from
May 14, 2021
Merged

Fix build #898

merged 8 commits into from
May 14, 2021

Conversation

yorinasub17
Copy link
Contributor

At some point, terratest build process stopped working (See https://app.circleci.com/pipelines/github/gruntwork-io/terratest/553/workflows/59862dba-539e-4d0a-8f9b-f0af33b7b4db for example). I still don't understand why this is happening given that I can't repro locally both in my Mac and Linux boxes. However, what appears to happen is that go completely ignores the go.mod and go.sum files located at the root in the circleci environment.

So I bumped golang to the latest version. This appears to have worked, but introduced a different problem where it thinks the go.mod file is out of date, even though it is up to date in my local env (when I run go mod tidy locally, nothing changes!).

In any case, the build appears to have been fixed when I added a call to go mod tidy prior to build-go-binaries.

As a bonus, this adds darwin/arm64 binaries for terratest_log_parser and pick-instance-type bins.

@yorinasub17 yorinasub17 requested a review from brikis98 as a code owner May 13, 2021 19:35
Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yorinasub17
Copy link
Contributor Author

Thanks for review! Merging this in now.

@yorinasub17 yorinasub17 merged commit 3af8e92 into master May 14, 2021
@yorinasub17 yorinasub17 deleted the yori-fix-build branch May 14, 2021 13:41
robcamer pushed a commit to aztfmod/terratest that referenced this pull request Jun 14, 2021
* Bump to go 1.16

* Limit build parallelism

* Add go111module setting

* Use go 1.16.3

* Use working directory in go src dir

* Make sure all jobs have the same working_directory

* Call go mod tidy

* bump hardcoded go version in test fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants