-
Notifications
You must be signed in to change notification settings - Fork 83
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
go mods #107
go mods #107
Conversation
Makefile
Outdated
@@ -3,7 +3,7 @@ include .env | |||
|
|||
BINARY := wave | |||
VERSION := $(shell git describe --always --dirty --tags 2>/dev/null || echo "undefined") | |||
ECHO := echo | |||
ECHO := echo -e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC echo -e doesn't work on all platforms, are you working on linux or mac?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh right, yes I recall something similar actually.. (I'm on linux)
If osx has an ancient bash maybe its echo -e
won't work?
Can you test for me (assuming you're on osx?)
If it doesn't work, Try adding this to the Makefile: SHELL := /usr/bin/env bash
(to ensure echo -e
is calling the bash echo)
Otherwise I think we have some options:
- drop colour prints, instead be clear using old school tricks like:
=========== message =============
- I can set the colours via
tput
- emojis? ¯_(ツ)_/¯
I'll give tput a quick test in meantime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to stack overflow printf
works on macOS
So I've updated it and it tests OK on linux (needed to add a \n
to the end of each statement)
Can you test for me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, will try to find a moment to test the printf later today
Makefile
Outdated
@ $(ECHO) "\033[36mPuling dependencies\033[0m" | ||
$(DEP) ensure --vendor-only | ||
@ $(ECHO) "\033[36mPuling dependencies\033[0m\n" | ||
go get -v github.com/wave-k8s/wave/cmd/manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
go mod download -x
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh right, I just tested and noticed that the Makefile's need some love so I'm working on them.. will take some testing but I hope to get generation +kustomize and as much as I can validated
Lots of updates done to the Makefiles to get everything working done Stuck at go generate now as its attempting to pull content from the |
Converting the PR to a draft as its WIP |
That issue can be solved by creating a |
This pull request has been inactive for 60 days. If the pull request is still relevant please comment to re-activate the pull request. If no action is taken within 7 days, the pull request will be marked closed. |
(old command doesn't work anymore)
Rebased to let the tests run. I'll look at fixing the tests later or tomorrow. |
Hey @toelke, I think I was able to repro the test failure locally. This seemed to fix it for me: |
I've tried to combine this PR + Mark's but, but I couldn't able to compile the tests with:
|
I have merged #145. Thank you so much for the work in this PR! |
I wanted to bosh on this a little but before I start I've updated it to go mods incase thats handy?