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

add cache clean to make build and test #1358

Closed
wants to merge 1 commit into from

Conversation

zackattack01
Copy link
Contributor

This has stopped the macOS version linking warnings on a few dev environments and is intended to prevent us from needing to bypass the stderr checks during the build process

@@ -44,6 +44,7 @@ build_%: ARCHARG = $(if $(ARCH), --arch $(ARCH))
build_%: GOARG = $(if $(CROSSGOPATH), --go $(CROSSGOPATH))
build_%: GOBUILD = $(if $(CROSSGOPATH), $(CROSSGOPATH), go)
build_%: .pre-build
$(GOBUILD) clean -cache
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is a good idea. The go cache is why builds are fast, and that we need this is a real bug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah was just discussing more with James, would you be open to something more like:
if [[ "${GOCLEANCACHE}" -eq 1 ]]; then $(GOBUILD) clean -cache; fi
or the simplest for now, just telling people the can run cache clean until we get to the bottom of the linking (I was under the impression this was an ongoing issue because it's happened since I started)

Copy link
Contributor

Choose a reason for hiding this comment

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

i can live with just remembering to run go clean -cache until we figure it out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that makes sense to me, I will close this. Thanks for the feedback all!

@zackattack01 zackattack01 deleted the zack/reduce_build_warnings branch September 14, 2023 20:27
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.

3 participants