Change:
Using the grep from OSX, fails when GREPOPTIONS/GREPCOLOR is set as shown below (). Workaround : unset GREPOPTIONS/GREPCOLOR Note that using GNU grep using brew install will show that GREPOPTIONS shows immediately that GREP_OPTIONS may be interfering with make ()
oh, here's badly manged conversion-
Will look, thanks. For make-related bugs, please @ me directly.
Will do. thanks
This breaks building kubernetes inside Alpine Linux:
I'm pressing more and more on the idea that the only supported build is the dockerized build. Trying to accomodate every random environment is just too taxing. , Marc Villacorta wrote:
I agree with We can support the stuff in to run on mac to get you dockerized but everything else is only supported in there. I've worked around a few BSD/OSX things in but it isn't fun. We should try to keep that stuff isolated.
I agree, with the usual caveat that we need to be doing all of the build in one container with as little as possible happening outside. OS X tends to have old and broken versions of important programs, which is terrible. We discussed setting up CI for it but it's not going to happen in the near term. Alpine/Busybox purposefully omit features from their versions for good reasons, but it's still more work to support than it's worth.
Ok, I will re-think my workflow.
How did you find yourself building in Alpine, in I may ask? , Marc Villacorta wrote:
nothing is forcing me to use Alpine I just like the distro. I run stuff on CoreOS and my aim is to solve the build-deliver-run pipeline with a single small container. By the way, I have the problem installing the GNU package :-)

Discussion:
# but we only need to rebuild targets if the contents actually changed.  That # is what the .stamp file represents. $(foreach dir, $(ALL_GO_DIRS), $(META_DIR)/$(dir)/$(GOFILES_META)): <del> FILES=$$(ls $</*.go | grep -v $(GENERATED_FILE_PREFIX));   </del> <ins> FILES=$$(ls $</*.go | grep --color=never -v $(GENERATED_FILE_PREFIX));   </ins> mkdir -p $(@D);                                            echo "gofiles__$< := $$(echo $${FILES})" >$@.tmp;          cmp -s $@.tmp $@ || touch $@.stamp;                       

endif ALL_K8S_TAG_FILES := $(shell                              find $(ALL_GO_DIRS) -maxdepth 1 -type f -name *.go   <del> | xargs grep -l '^// *+k8s:'                      </del> <ins> | xargs grep --color=never -l '^// *+k8s:'        </ins> ) #

$(warning ***** finding all +k8s:deepcopy-gen tags) endif DEEPCOPY_DIRS := $(shell                                <del> grep -l '+k8s:deepcopy-gen=' $(ALL_K8S_TAG_FILES)   </del> <ins> grep --color=never -l '+k8s:deepcopy-gen=' $(ALL_K8S_TAG_FILES)   </ins> | xargs -n1 dirname                             | sort -u                                       )

INDIRECT=$$(go list -e                                 -f '{{range .Deps}}{{.}}{{"n"}}{{end}}'           ./cmd/libs/go2idl/deepcopy-gen                     <del> | grep "^$(PRJ_SRC_PATH)"                          </del> <ins> | grep --color=never "^$(PRJ_SRC_PATH)"            </ins> | sed 's|^$(PRJ_SRC_PATH)|./|'                     | xargs go list -e -f '{{.Dir}} {{.Dir}}/*.go');   echo $$DIRECT $$INDIRECT                              

$(warning ***** finding all +k8s:conversion-gen tags) endif CONVERSION_DIRS := $(shell                                 <del> grep '^// *+k8s:conversion-gen=' $(ALL_K8S_TAG_FILES)  </del> <ins> grep --color=never '^// *+k8s:conversion-gen=' $(ALL_K8S_TAG_FILES)  </ins> | cut -f1 -d:                                      | xargs -n1 dirname                                | sort -u                                         

# but we only need to rebuild targets if the contents actually changed.  That # is what the .stamp file represents. $(foreach dir, $(CONVERSION_DIRS), $(META_DIR)/$(dir)/$(CONVERSIONS_META)): <del> TAGS=$$(grep -h '^// *+k8s:conversion-gen=' $</*.go    </del> <ins> TAGS=$$(grep --color=never -h '^// *+k8s:conversion-gen=' $</*.go   </ins> | cut -f2- -d=                                     | sed 's|$(PRJ_SRC_PATH)/||');                     mkdir -p $(@D);                                       

INDIRECT=$$(go list -e                                 -f '{{range .Deps}}{{.}}{{"n"}}{{end}}'           ./cmd/libs/go2idl/conversion-gen                   <del> | grep "^$(PRJ_SRC_PATH)"                          </del> <ins> | grep --color=never "^$(PRJ_SRC_PATH)"            </ins> | sed 's|^$(PRJ_SRC_PATH)|./|'                     | xargs go list -e -f '{{.Dir}} {{.Dir}}/*.go');   echo $$DIRECT $$INDIRECT