This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 291562a  chore: disable modules when invoking go clean
291562a is described below

commit 291562aab658ba1bca2d40a3e159df70156e493e
Author: lburgazzoli <lburgazz...@gmail.com>
AuthorDate: Tue May 28 11:37:30 2019 +0200

    chore: disable modules when invoking go clean
---
 script/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/script/Makefile b/script/Makefile
index 38eb164..ba625fa 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -81,7 +81,15 @@ build-compile-integration-tests:
        go test -c -tags=integration ./test/*.go
 
 clean:
-       go clean
+       # go clean fails if modules support are turned on as it tries to 
+       # resolve modules, if module support is turned off, it does not
+       # care about modules and simply deletes bits.
+       #
+       # For more info:
+       #
+       #   
https://github.com/golang/go/commit/9238a8ffe12b6eb44aab12de1b861c0f045da8b7
+       #
+       GO111MODULE=off go clean
        rm -f camel-k
        rm -f kamel
        rm -f publisher

Reply via email to